Florent Xicluna
79d79a0f29
Minor refactoring in importlib._bootstrap, and fix the '_wrap' docstring.
2012-07-07 13:16:44 +02:00
Florent Xicluna
a1c974a66d
Minor refactoring in xml.etree.ElementTree doctype parser.
2012-07-07 13:16:44 +02:00
Florent Xicluna
fed2c51eea
Merge branch
2012-07-07 12:26:56 +02:00
Florent Xicluna
11f0b41e9d
Issue #14990 : tokenize: correctly fail with SyntaxError on invalid encoding declaration.
2012-07-07 12:13:35 +02:00
Nick Coghlan
36f8dcde06
Issue 14814: Provide more informative error messages in ipaddress, and ensure that errors are caught as expected
2012-07-07 19:23:53 +10:00
Nick Coghlan
912238e3ac
Issue 14814: %s implies coercion with str() - remove a lot of redundant str() calls from the ipaddress implementation
2012-07-07 13:34:50 +10:00
Antoine Pitrou
7d7f40c613
Issue #15247 : FileIO now raises an error when given a file descriptor pointing to a directory.
2012-07-06 18:52:58 +02:00
Antoine Pitrou
9235b254dc
Issue #15247 : FileIO now raises an error when given a file descriptor pointing to a directory.
2012-07-06 18:48:24 +02:00
Nick Coghlan
5cf896fea8
Issue 14814: Eliminate bytes warnings from ipaddress by correctly throwing an exception early when given bytes data of the wrong length. Also removes 2.x backwards compatibility code from associated tests.
2012-07-07 01:43:31 +10:00
Nick Coghlan
3c2570caf2
Issue 14814: Better handling of cases where octet/hextet parsing fails, including ensuring that tracebacks are still clean even when calling class constructors directly
2012-07-07 01:13:55 +10:00
Richard Oudkerk
2240ac1eae
Issue #15261 : Stop os.stat(fd) crashing on Windows when fd not open.
2012-07-06 12:05:32 +01:00
Senthil Kumaran
f28fbabc7f
Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
2012-07-04 19:33:45 -07:00
Senthil Kumaran
f01a337950
Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
2012-07-04 19:28:16 -07:00
Brett Cannon
53089c6e91
Issue #15210 : Greatly simplify the test for supporting importlib
...
working without _frozen_importlib by moving to an import over a direct
access in sys.modules.
2012-07-04 14:03:40 -04:00
Vinay Sajip
ed1f7c834f
Closes #14902 : Fixed timezone conversion of a date/time in the past. Thanks to Yuriy Syrovetskiy for the report and Juancarlo Añez for the patch on which this fix is based.
2012-07-03 21:36:36 +01:00
Vinay Sajip
3874e547b4
Issue #15241 : Added test for venv prefixes.
2012-07-03 16:56:40 +01:00
Vinay Sajip
abd344cbab
Issue 15241: Improved site.py documentation relating to venvs.
2012-07-03 16:33:57 +01:00
Brett Cannon
98979b85e7
Issue #15166 : Re-implement imp.get_tag() using sys.implementation.
...
Also eliminates some C code in Python/import.c as well.
Patch by Eric Snow with verification by comparing against another
patch from Jeff Knupp.
2012-07-02 15:13:11 -04:00
Brett Cannon
8e2f5564b3
Issue #15210 : If _frozen_importlib is not found in sys.modules by
...
importlib.__init__, then catch the KeyError raised, not ImportError.
2012-07-02 14:53:10 -04:00
Brett Cannon
1e331560ee
Closes #15030 : Make importlib.abc.PyPycLoader respect the new .pyc
...
file size header field.
Thanks to Marc Abramowitz and Ronan Lamy for helping out with various
parts of the patch.
2012-07-02 14:35:34 -04:00
Antoine Pitrou
f87289bb58
Issue #15229 : An OSError subclass whose __init__ doesn't call back
...
OSError.__init__ could produce incomplete instances, leading to crashes
when calling str() on them.
2012-06-30 23:37:47 +02:00
doko@ubuntu.com
7e6c2e2cc4
- Issue #14330 : For cross builds, don't use host python, use host search paths
...
for host compiler.
Add NEWS entry, rename _PROJECT_BASE to _PYTHON_PROJECT_BASE.
2012-06-30 22:35:00 +02:00
doko@ubuntu.com
1abe1c5fe1
- Issue #14330 : For cross builds, don't use host python, use host search paths
...
for host compiler.
2012-06-30 20:42:45 +02:00
Antoine Pitrou
f93b705bd0
Issue #9239 : add tests for modifying zipfile comments in append mode.
2012-06-30 17:32:41 +02:00
Antoine Pitrou
c399185fcc
Issue #9239 : add tests for modifying zipfile comments in append mode.
2012-06-30 17:31:37 +02:00
Antoine Pitrou
24ef3e967f
Issue #15225 : improve error message when hmac is passed a wrong key type.
...
Patch by Marc Abramowitz.
2012-06-30 17:27:56 +02:00
Nadeem Vawda
83a4dd3fdf
Update GzipFile docstring to mention gzip.open()'s new text-mode support.
2012-06-30 13:34:28 +02:00
Senthil Kumaran
a1632e65fa
urllib.parse cleanup. rename keywords used as variables
2012-06-29 11:08:51 -07:00
Senthil Kumaran
eda29f4718
urllib.parse cleanup. rename keywords used as variables
2012-06-29 11:08:20 -07:00
Antoine Pitrou
a9effcd802
Better diagnose test failure
2012-06-29 19:40:54 +02:00
Antoine Pitrou
b8b6a68baa
Better diagnose test failure
2012-06-29 19:40:35 +02:00
Petri Lehtinen
25652884b4
#5346 : Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()
2012-06-29 15:12:54 +03:00
Petri Lehtinen
5b5619f717
#5346 : Preserve permissions of mbox, MMDF and Babyl mailbox files on flush()
2012-06-29 15:10:41 +03:00
Petri Lehtinen
31a78c3d65
#9559 : Don't call _pre_mailbox_hook more than once
2012-06-29 13:51:50 +03:00
Petri Lehtinen
b6ee3d6b7a
#9559 : Don't call _pre_mailbox_hook more than once
2012-06-29 13:50:21 +03:00
Hynek Schlawack
d0f6e0a6e6
Check for all used fd-based functions in shutil.rmdir, closes #15218
2012-06-29 08:28:20 +02:00
Antoine Pitrou
802d669044
Issue #5067 : improve some json error messages.
...
Patch by Serhiy Storchaka.
2012-06-29 01:59:54 +02:00
Antoine Pitrou
2d24e94bbe
Issue #5067 : improve some json error messages.
...
Patch by Serhiy Storchaka.
2012-06-29 01:58:26 +02:00
Amaury Forgeot d'Arc
3a3dc17fc9
Port tests from Issue #15219 , and verify we don't have a reference leak.
2012-06-29 01:53:13 +02:00
Antoine Pitrou
c92448beba
Issue #10571 : Fix the "--sign" option of distutils' upload command.
...
Patch by Jakub Wilk.
2012-06-29 01:06:51 +02:00
Antoine Pitrou
24319ac407
Issue #10571 : Fix the "--sign" option of distutils' upload command.
...
Patch by Jakub Wilk.
2012-06-29 01:05:26 +02:00
Hynek Schlawack
9f558ccefd
#4489 : Use dir_fd in rmdir in _rmtree_safe_fd()
...
Now that rmdir supports dir_fd, we also use it. Attackers can't even delete
empty directories anymore.
2012-06-28 15:30:47 +02:00
Petri Lehtinen
dde8cb0899
#9559 : Append data to single-file mailbox files if messages are only added
...
If messages were only added, a new file is no longer created and
renamed over the old file when flush() is called on an mbox, MMDF or
Babyl mailbox.
2012-06-28 13:56:14 +03:00
Petri Lehtinen
f29435f9f0
#9559 : Append data to single-file mailbox files if messages are only added
...
If messages were only added, a new file is no longer created and
renamed over the old file when flush() is called on an mbox, MMDF or
Babyl mailbox.
2012-06-28 13:53:23 +03:00
Eric V. Smith
abb755db11
Merge.
2012-06-28 06:15:30 -04:00
Eric V. Smith
b10951549b
Use assertIsNone. Thanks Terry Reedy.
2012-06-28 06:15:01 -04:00
Hynek Schlawack
a75cd1ce73
#4489 : Don't follow ever symlinks in rmtree
...
Also added several regression tests.
2012-06-28 12:07:29 +02:00
Antoine Pitrou
8afc243a76
Avoid using scrdir, it's broken.
2012-06-28 01:20:26 +02:00
Neil Schemenauer
76b931b133
Fix bug in test_tools that prevented building is separate directory.
...
Use 'srcdir' from sysconfig instead of 'projectbase' to build a
path to the Tools directory. 'projectbase' is the path of the build
directory, not the source directory.
2012-06-27 15:58:37 -06:00
Eric V. Smith
faae3adbb9
Changed importlib tests to use assertIs, assertIsInstance, etc., instead of just assertTrue.
2012-06-27 15:26:26 -04:00