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
22e57deb
Commit
22e57deb
authored
Jun 04, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More codestring -> codebytes.
parent
74ad50e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
command/upload.py
command/upload.py
+1
-1
No files found.
command/upload.py
View file @
22e57deb
...
...
@@ -127,7 +127,7 @@ class upload(PyPIRCCommand):
user_pass
=
(
self
.
username
+
":"
+
self
.
password
).
encode
(
'ascii'
)
# The exact encoding of the authentication string is debated.
# Anyway PyPI only accepts ascii for both username or password.
auth
=
"Basic "
+
base64
.
encode
string
(
user_pass
).
strip
().
decode
(
'ascii'
)
auth
=
"Basic "
+
base64
.
encode
bytes
(
user_pass
).
strip
().
decode
(
'ascii'
)
# Build up the MIME payload for the POST data
boundary
=
'--------------GHSKFJDLGDS7543FJKLFHRE75642756743254'
...
...
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