Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
74aa5c74
Commit
74aa5c74
authored
May 02, 2007
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rip out all the u"..." literals and calls to unicode().
parent
3bf5ce40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
command/bdist_wininst.py
command/bdist_wininst.py
+2
-2
command/build_clib.py
command/build_clib.py
+1
-1
command/register.py
command/register.py
+1
-1
No files found.
command/bdist_wininst.py
View file @
74aa5c74
...
...
@@ -247,11 +247,11 @@ class bdist_wininst (Command):
# Convert cfgdata from unicode to ascii, mbcs encoded
try
:
unicode
str
except
NameError
:
pass
else
:
if
isinstance
(
cfgdata
,
unicode
):
if
isinstance
(
cfgdata
,
str
):
cfgdata
=
cfgdata
.
encode
(
"mbcs"
)
# Append the pre-install script
...
...
command/build_clib.py
View file @
74aa5c74
...
...
@@ -147,7 +147,7 @@ class build_clib (Command):
raise
DistutilsSetupError
,
\
"each element of 'libraries' must a 2-tuple"
if
isinstance
(
lib
[
0
],
basestring
)
StringType
:
if
isinstance
(
lib
[
0
],
basestring
):
raise
DistutilsSetupError
,
\
"first element of each tuple in 'libraries' "
+
\
"must be a string (the library name)"
...
...
command/register.py
View file @
74aa5c74
...
...
@@ -259,7 +259,7 @@ Your selection [default 1]: ''', end=' ')
if
type
(
value
)
not
in
(
type
([]),
type
(
()
)):
value
=
[
value
]
for
value
in
value
:
value
=
unicode
(
value
).
encode
(
"utf-8"
)
value
=
str
(
value
).
encode
(
"utf-8"
)
body
.
write
(
sep_boundary
)
body
.
write
(
'
\
n
Content-Disposition: form-data; name="%s"'
%
key
)
body
.
write
(
"
\
n
\
n
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment