[issue4338] TypeError (bytes/str) in distutils command "upload"
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Nov 19 01:57:00 CET 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
I indeed tested that the PyPI user registration refuses non-ascii
characters in both username and password.
But the reported error is only the first of a bytes/str mess.
See attached patch.
- I chose to encode package metadata with utf-8
- Since I did not set credentials in some .pypirc file, the submission
fails; my first tests on a sample package returned a 401 error (normal)
but now I only get 200 return codes. I hope my package will not show up
in PyPI...
This needs more testing with a real package of a real developer.
----------
keywords: +needs review, patch
Added file: http://bugs.python.org/file12052/distutils_upload.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4338>
_______________________________________
More information about the Python-bugs-list
mailing list