- 30 Aug, 2011 4 commits
-
-
Antoine Pitrou authored
Windows does set the errno attribute to ENOENT, but the error message displays the Windows error number (3 -> ERROR_PATH_NOT_FOUND), not the errno number (2 -> ENOENT). The Unix errno corresponding to 3 is ESRCH, explaining the confusion, which can be seen in the following snippet: >>> shutil.rmtree("foo") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "Z:\default\lib\shutil.py", line 272, in rmtree onerror(os.listdir, path, sys.exc_info()) File "Z:\default\lib\shutil.py", line 270, in rmtree names = os.listdir(path) WindowsError: [Error 3] The system cannot find the path specified: 'foo\\*.*' >>> e = sys.last_value >>> e.errno 2 >>> e.winerror 3 >>> errno.errorcode[2] 'ENOENT' For reference, see PC/errmap.h and http://msdn.microsoft.com/en-us/library/ms681382%28v=vs.85%29.aspx
-
Éric Araujo authored
-
Éric Araujo authored
-
Éric Araujo authored
-
- 29 Aug, 2011 13 commits
-
-
Éric Araujo authored
There was already a test for this, but it was complicated and had a subtle bug (custom command objects need to be put in dist.command_obj so that other command objects may see them) that rendered it moot.
-
Éric Araujo authored
Packaging uses the shutil.make_archive function copied from distutils, which does not support compress. There is no test to check that “bdist --format whatever” works, so this slipped by.
-
Éric Araujo authored
-
Éric Araujo authored
These options were used to implement “setup.py --name”, “setup.py --version”, etc. which are now handled by the pysetup metadata action or direct parsing of the setup.cfg file. As a side effect, the Distribution class no longer accepts a 'url' key in its *attrs* argument: it has to be 'home-page' to be recognized as a valid metadata field and passed down to the dist.metadata object. I cleaned up some comments, docstrings and code along the way.
-
Éric Araujo authored
-
Antoine Pitrou authored
the C pickle implementation.
-
Antoine Pitrou authored
the C pickle implementation.
-
Antoine Pitrou authored
(more than 2**31 items). Instead, in most cases, an OverflowError is raised.
-
Antoine Pitrou authored
(more than 2**31 items). Instead, in most cases, an OverflowError is raised.
-
Éric Araujo authored
When called without option (“-f field” or “--all”), “pysetup metadata” didn’t do anything useful. Now it prints out all metadata fields. The “--all” option is removed.
-
Éric Araujo authored
-
Éric Araujo authored
-
Éric Araujo authored
-
- 28 Aug, 2011 5 commits
-
-
Charles-François Natali authored
the check against negative values, and add a note on this surprising test. Patch by David Watson.
-
Charles-François Natali authored
greater than FD_SETSIZE.
-
Charles-François Natali authored
greater than FD_SETSIZE.
-
Nadeem Vawda authored
If the version of zlib used to compile the zlib module is incompatible with the one that is actually linked in, then calls into zlib will fail. This can leave attributes of the z_stream uninitialized, so we must take care to avoid segfaulting by trying to use an invalid pointer. Fix by Richard M. Tew.
-
Nadeem Vawda authored
If the version of zlib used to compile the zlib module is incompatible with the one that is actually linked in, then calls into zlib will fail. This can leave attributes of the z_stream uninitialized, so we must take care to avoid segfaulting by trying to use an invalid pointer. Fix by Richard M. Tew.
-
- 27 Aug, 2011 10 commits
-
-
Antoine Pitrou authored
-
Antoine Pitrou authored
-
Antoine Pitrou authored
-
Antoine Pitrou authored
-
Antoine Pitrou authored
-
Antoine Pitrou authored
-
Nick Coghlan authored
Fix #9923: mailcap now uses the OS path separator for the MAILCAP envvar. Not backported, since it could break cases where people worked around the old POSIX-specific behaviour on non-POSIX platforms.
-
Nick Coghlan authored
Fix #12835: prevent use of the unencrypted sendmsg/recvmsg APIs on SSL wrapped sockets (Patch by David Watson)
-
Nadeem Vawda authored
-j doesn't pass the memlimit on to child processes, so this doesn't work at present, and even if it did, running multiple bigmem tests at once would usually not be desirable (since you generally want to devote as much of the available RAM as possible to each test).
-
Nadeem Vawda authored
-j doesn't pass the memlimit on to child processes, so this doesn't work at present, and even if it did, running multiple bigmem tests at once would usually not be desirable (since you generally want to devote as much of the available RAM as possible to each test).
-
- 26 Aug, 2011 5 commits
-
-
Éric Araujo authored
-
Éric Araujo authored
The doc already points to argparse.
-
Éric Araujo authored
-
Éric Araujo authored
-
Éric Araujo authored
-
- 25 Aug, 2011 3 commits
-
-
Éric Araujo authored
-
Éric Araujo authored
-
Éric Araujo authored
-