Nick Coghlan
51c3067551
Issue #14814 : In the spirit of TOOWTDI, ditch the redundant version parameter to the factory functions by using the appropriate direct class references instead
2012-05-27 00:25:58 +10:00
Hynek Schlawack
072b1e1485
#14814 : Some PEP8 adjustments and dead code weeding
2012-05-26 12:04:56 +02:00
R David Murray
d2d521eafd
#665194 : Add a localtime function to email.utils.
...
Without this function people would be tempted to use the other date functions
in email.utils to compute an aware localtime, and those functions are not as
good for that purpose as this code. The code is Alexander Belopolsy's from
his proposed patch for issue 9527, with a fix (and additional tests) by Brian
K. Jones.
2012-05-25 23:22:59 -04:00
R David Murray
dcaf2ece6c
#12586 : Fix a small oversight in the new email policy header setting code.
...
This is a danger of focusing on unit tests: sometimes you forget
to do the integration tests.
2012-05-25 22:53:12 -04:00
Vinay Sajip
b5267631cb
Merged upstream changes.
2012-05-26 03:48:27 +01:00
Vinay Sajip
7ded1f0f69
Implemented PEP 405 (Python virtual environments).
2012-05-26 03:45:29 +01:00
Senthil Kumaran
4322c178b9
Issue #14920 : Fix the help(urllib.parse) failure on locale C terminals. Just have ascii in help msg
2012-05-26 09:55:28 +08:00
Senthil Kumaran
ffa4b2c037
Issue #14920 : Fix the help(urllib.parse) failure on locale C terminals. Just have ascii in help msg
2012-05-26 09:53:32 +08:00
R David Murray
0b6f6c82b5
#12586 : add provisional email policy with new header parsing and folding.
...
When the new policies are used (and only when the new policies are explicitly
used) headers turn into objects that have attributes based on their parsed
values, and can be set using objects that encapsulate the values, as well as
set directly from unicode strings. The folding algorithm then takes care of
encoding unicode where needed, and folding according to the highest level
syntactic objects.
With this patch only date and time headers are parsed as anything other than
unstructured, but that is all the helper methods in the existing API handle.
I do plan to add more parsers, and complete the set specified in the RFC
before the package becomes stable.
2012-05-25 18:42:14 -04:00
R David Murray
c27e52265b
#14731 : refactor email policy framework.
...
This patch primarily does two things: (1) it adds some internal-interface
methods to Policy that allow for Policy to control the parsing and folding of
headers in such a way that we can construct a backward compatibility policy
that is 100% compatible with the 3.2 API, while allowing a new policy to
implement the email6 API. (2) it adds that backward compatibility policy and
refactors the test suite so that the only differences between the 3.2
test_email.py file and the 3.3 test_email.py file is some small changes in
test framework and the addition of tests for bugs fixed that apply to the 3.2
API.
There are some additional teaks, such as moving just the code needed for the
compatibility policy into _policybase, so that the library code can import
only _policybase. That way the new code that will be added for email6
will only get imported when a non-compatibility policy is imported.
2012-05-25 15:01:48 -04:00
Eric V. Smith
f879e32cc5
Added test for namespace package dynamic path updates.
2012-05-25 11:25:27 -04:00
Richard Oudkerk
739ae5692e
Issue #14548 : Make multiprocessing finalizers check pid before running
...
This protects from possibilty of gc running just after fork.
2012-05-25 13:54:53 +01:00
Richard Oudkerk
692130a231
Issue #12091 : simplify ApplyResult and MapResult with threading.Event
...
Patch by Charles-François Natali
2012-05-25 13:26:53 +01:00
Richard Oudkerk
be39cfc9dc
Merge
2012-05-25 13:04:20 +01:00
Richard Oudkerk
54454e7dc2
Issue #14881 : Allow normal non-main thread to spawn a dummy process
...
Fix suggested by Itay Brandes
2012-05-25 12:57:58 +01:00
Hynek Schlawack
9866d96e48
#4841 : Fix FileIO constructor to honor closefd when called repeatedly
...
Patch by Victor Stinner.
2012-05-25 10:27:43 +02:00
Hynek Schlawack
2cc7156515
#4841 : Fix FileIO constructor to honor closefd when called repeatedly
...
Patch by Victor Stinner.
2012-05-25 10:05:53 +02:00
Eric V. Smith
283d0ba45d
Whitespace cleanup.
2012-05-24 20:22:10 -04:00
Eric V. Smith
984b11f88f
issue 14660: Implement PEP 420, namespace packages.
2012-05-24 20:21:04 -04:00
Senthil Kumaran
4715ca5600
Issue #14036 : return None when port in urlparse cross 65535
2012-05-24 21:57:38 +08:00
Senthil Kumaran
2fc5a50809
Issue #14036 : return None when port in urlparse cross 65535
2012-05-24 21:56:17 +08:00
Sandro Tosi
b95c63413d
Issue #14814 : minor improvements as suggested by Hynek Schlawack
2012-05-23 23:17:22 +02:00
Sandro Tosi
876ecad9f5
Issue #14814 : improve docstrings and arguments value handling, as per Terry J. Reedy's comments
2012-05-23 22:26:55 +02:00
Petri Lehtinen
3bc37f2360
#14862 : Add missing names to os.__all__
2012-05-23 21:36:28 +03:00
Hynek Schlawack
e02ba1031f
#14885 : Make support.skip_unless_xattr check also tempfile
...
There is a rare edge case where the filesystem used by the tempfile functions
(usually /tmp) doesn't support xattrs while the one used by TESTFN (the current
directory, so likely to be below /home) does. This causes the xattr related
test_shutil tests fail. skip_unless_xattr now checks both.
I have also added skip_unless_xattr to __all__ where it has been missing.
2012-05-23 11:22:44 +02:00
Ezio Melotti
4226543490
#14875 : merge with 3.2.
2012-05-21 17:53:42 -06:00
Ezio Melotti
898d51da4d
#14875 : Use float('inf') instead of float('1e66666') in the json module.
2012-05-21 17:49:06 -06:00
Nick Coghlan
1d5ccdb24d
Close #14136 by cleaning up the PEP 409 command line test (patch by Ethan Furman)
2012-05-21 23:03:30 +10:00
Nick Coghlan
3267a30de1
Close #13585 : add contextlib.ExitStack to replace the ill-fated contextlib.nested API
2012-05-21 22:54:43 +10:00
Nick Coghlan
dc9b2555a8
Issue #14814 : addition of the ipaddress module (stage 1 - code and tests)
2012-05-20 21:01:57 +10:00
Senthil Kumaran
185f401308
merge - Fix for issue14426 - buildbots here I come
2012-05-20 16:58:59 +08:00
Senthil Kumaran
aeeba2629a
Fix for issue14426 - buildbots here I come
2012-05-20 16:58:30 +08:00
Raymond Hettinger
010ce3283a
Minor change to default lru size. Set default to a power of two.
2012-05-19 21:20:48 -07:00
Senthil Kumaran
0b943a18ef
Issue #14426 : Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert
2012-05-20 12:06:51 +08:00
Senthil Kumaran
00c2ec282e
Issue #14426 : Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert
2012-05-20 12:05:16 +08:00
Eli Bendersky
b20df95827
Issue #14849 : setup Element data members to be assignable in subclasses
2012-05-20 06:33:29 +03:00
Nick Coghlan
7fc570a51e
Close #14588 : added a PEP 3115 compliant dynamic type creation mechanism
2012-05-20 02:34:13 +10:00
Petri Lehtinen
7c5ba513b9
#14494 : Document that absolute imports became default in 3.0 instead of 2.7.
2012-05-19 18:38:43 +03:00
Petri Lehtinen
079bfc962d
#14494 : Document that absolute imports became default in 3.0 instead of 2.7.
2012-05-19 18:36:33 +03:00
Ezio Melotti
ed1183db8b
#14072 : merge with 3.2.
2012-05-19 17:16:22 +03:00
Ezio Melotti
6709b7d5d1
#14072 : Fix parsing of tel URIs in urlparse by making the check for ports stricter.
2012-05-19 17:15:19 +03:00
Hynek Schlawack
d527259f14
#13152 : Allow to specify a custom tabsize for expanding tabs in textwrap
...
Patch by John Feuerstein.
2012-05-19 13:33:11 +02:00
Senthil Kumaran
d34b57a9a2
merge - Fix Issue14721: Send Content-length: 0 for empty body () in the http.client requests
2012-05-19 16:58:45 +08:00
Senthil Kumaran
5fa4a89601
Fix Issue14721: Send Content-length: 0 for empty body () in the http.client requests
2012-05-19 16:58:09 +08:00
Senthil Kumaran
15e848b076
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
2012-05-19 08:12:46 +08:00
Senthil Kumaran
1be320ebdd
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
2012-05-19 08:12:00 +08:00
Petri Lehtinen
43ae3ceab8
#14798 : pyclbr now raises ImportError instead of KeyError for missing packages
2012-05-18 21:59:49 +03:00
Petri Lehtinen
8d88604682
#14798 : pyclbr now raises ImportError instead of KeyError for missing packages
2012-05-18 21:56:36 +03:00
Antoine Pitrou
fa67aa0d72
Fix whitespace
2012-05-18 18:33:32 +02:00
Antoine Pitrou
ebdcd859e5
Move private function _args_from_interpreter_flags() to subprocess.py, so
...
that it can be imported when threads are disabled.
(followup to issue #12098 )
2012-05-18 18:33:07 +02:00
Richard Oudkerk
77c84f2def
#12098 : Make multiprocessing's child processes inherit sys.flags on Windows
...
Initial patch by Sergey Mezentsev.
2012-05-18 14:28:02 +01:00
Antoine Pitrou
62110c769f
Merge
2012-05-17 21:04:49 +02:00
Antoine Pitrou
314a16b0ec
Make the test completely clean up after itself.
2012-05-17 21:02:54 +02:00
Ross Lagerwall
468ff4c3ed
Issue #13031 : Small speed-up for tarfile when unzipping tarfiles.
...
Patch by Justin Peel.
2012-05-17 19:49:27 +02:00
Antoine Pitrou
ea3eb88bca
Issue #9260 : A finer-grained import lock.
...
Most of the import sequence now uses per-module locks rather than the
global import lock, eliminating well-known issues with threads and imports.
2012-05-17 18:55:59 +02:00
Antoine Pitrou
de9ac6c2e5
Issue #14780 : urllib.request.urlopen() now has a `cadefault` argument to use the default certificate store.
...
Initial patch by James Oakley.
2012-05-16 21:40:01 +02:00
Stefan Krah
5d953184a6
Issue #14779 : Get sizeof(void *) directly rather than relying on sysconfig.
2012-05-16 20:41:56 +02:00
Antoine Pitrou
019ff19c39
Issue #14693 : Under non-Windows platforms, hashlib's fallback modules are always compiled, even if OpenSSL is present at build time.
2012-05-16 16:41:26 +02:00
Giampaolo Rodola'
26fd8feb5e
merge heads
2012-05-16 16:03:07 +02:00
Giampaolo Rodola'
e126678216
#14807 : fix BB failures on Windows - avoid to to rely too many details of the mode string.
2012-05-16 16:01:59 +02:00
Antoine Pitrou
7ca29507f6
Forward port additional tests from 2.7 (issue #14829 ).
2012-05-16 15:06:00 +02:00
Antoine Pitrou
fb5b954ee0
Forward port additional tests from 2.7 (issue #14829 ).
2012-05-16 15:01:40 +02:00
Eric V. Smith
5cdc6308b6
Cleanup so subsequent tests won't fail. Needs to be moved into a support routine (see 14715).
2012-05-16 04:48:04 -04:00
Hynek Schlawack
51b2ed51f0
#14809 : Add HTTP status codes from RFC 6585 to http.server and http.client
...
Patch by EungJun Yi.
2012-05-16 09:51:07 +02:00
Eric V. Smith
313fbe2106
Merge from 3.2.
2012-05-16 04:49:22 -04:00
Ned Deily
a0082788e4
Issue #14777 : merge
2012-05-15 18:13:02 -07:00
Ned Deily
4d377d98a1
Issue #14777 : In an X11 windowing environment, tkinter may return
...
undecoded UTF-8 bytes as a string when accessing the Tk clipboard.
Modify clipboad_get() to first request type UTF8_STRING when no
specific type is requested in an X11 windowing environment, falling
back to the current default type STRING if that fails.
Original patch by Thomas Kluyver.
2012-05-15 18:08:11 -07:00
Eric V. Smith
c8e106babb
Merge from 3.2.
2012-05-15 20:46:06 -04:00
Eric V. Smith
a790c9b6d6
Issue #14817 : Add rudimentary tests for pkgutil.extend_path.
2012-05-15 20:44:06 -04:00
Giampaolo Rodola'
12ea86adce
merge heads
2012-05-15 22:21:01 +02:00
Giampaolo Rodola'
b28df76ee2
#14807 : fix bb failure due to symlink test relying on hard-coded permissions
2012-05-15 22:20:10 +02:00
Hynek Schlawack
39bf90d319
Add two more sorts to test_os.WalkTests I've missed before
2012-05-15 18:40:17 +02:00
Senthil Kumaran
c5f31ed63d
merge heads
2012-05-16 00:07:24 +08:00
Senthil Kumaran
92a5bf0c0a
Issue12541 - Add UserWarning for unquoted realms
2012-05-16 00:03:29 +08:00
Senthil Kumaran
0ea91cb5c6
Issue12541 - Add UserWarning for unquoted realms
2012-05-15 23:59:42 +08:00
Hynek Schlawack
c96f5a0457
Sort file list in test_os.WalkTests
...
Adding new files into the tree lead to buildbot fails as the order wasn't
deterministic.
2012-05-15 17:55:38 +02:00
Senthil Kumaran
acfc26acb0
merge heads
2012-05-15 22:42:11 +08:00
Senthil Kumaran
b26fe2f313
merge from 3.2 - Issue #12541 : Be lenient with quotes around Realm field of HTTP Basic Authentation in urllib2.
2012-05-15 22:39:17 +08:00
Hynek Schlawack
66bfcc1b0f
#14773 : Fix os.fwalk() failing on dangling symlinks
2012-05-15 16:32:21 +02:00
Senthil Kumaran
34f3fcc269
Issue #12541 : Be lenient with quotes around Realm field of HTTP Basic Authentation in urllib2.
...
G: changed Misc/NEWS
2012-05-15 22:30:25 +08:00
Giampaolo Rodola'
ffa1d0b8d5
#14807 : move undocumented tarfile.filemode() to stat.filemode(). Add tarfile.filemode alias with deprecation warning.
2012-05-15 15:30:25 +02:00
Benjamin Peterson
d5a1c44455
PEP 415: Implement suppression of __context__ display with an exception attribute
...
This replaces the original PEP 409 implementation. See #14133 .
2012-05-14 22:09:31 -07:00
Antoine Pitrou
e2eab5e768
Followup to issue #14157 : respect the relative ordering of values produced by time.strptime().
...
Patch by Hynek.
2012-05-14 19:45:27 +02:00
Antoine Pitrou
072e4a3fc7
Followup to issue #14157 : respect the relative ordering of values produced by time.strptime().
...
Patch by Hynek.
2012-05-14 19:44:59 +02:00
Giampaolo Rodola'
a6beddef07
Issue 14800: add comments explaining stat.py constants + docstring for S_* functions.
2012-05-14 14:53:33 +02:00
Lars Gustäbel
b062a2fa17
Issue #13815 : Resurrect the ExFileObject class.
...
After a discussion in the tracker, the decision was made to keep the
ExFileObject class after all as a subclass of io.BufferedReader instead of
removing it completely.
2012-05-14 13:18:16 +02:00
Antoine Pitrou
9a2349030a
Issue #14417 : Mutating a dict during lookup now restarts the lookup instead of raising a RuntimeError (undoes issue #14205 ).
2012-05-13 20:48:01 +02:00
Charles-François Natali
7feb9f4225
Issue #14532 : Add a secure_compare() helper to the hmac module, to mitigate
...
timing attacks. Patch by Jon Oberheide.
2012-05-13 19:53:07 +02:00
Brett Cannon
d200bf534b
Add importlib.util.resolve_name().
2012-05-13 13:45:09 -04:00
Brian Curtin
401f9f3d32
Fix #13210 . Port the Windows build from VS2008 to VS2010.
2012-05-13 11:19:23 -05:00
Martin v. Löwis
7fb79fcb64
Issue #14366 : Support lzma compression in zip files.
...
Patch by Serhiy Storchaka.
2012-05-13 10:06:36 +02:00
Brett Cannon
ee78a2b51c
Issue #13959 : Introduce importlib.find_loader().
...
The long-term goal is to deprecate imp.find_module() in favour of this
API, but it will take some time as some APIs explicitly return/use what
imp.find_module() returns.
2012-05-12 17:43:17 -04:00
Brett Cannon
acc0c181a8
Remove a now worthless test.
2012-05-12 17:40:28 -04:00
Antoine Pitrou
61597d3e92
Try to fix test_shutil failure under Fedora - patch by Hynek.
2012-05-12 23:37:35 +02:00
Stefan Krah
094d0e002c
Issue #14779 : Do not use get_config_var('SIZEOF_VOID_P') on OS X 64-/32-bit
...
universal: it returns a meaningless result. Use sys.maxsize instead of
platform.architecture as a fallback. Patch by Ned Deily.
2012-05-12 23:11:51 +02:00
Antoine Pitrou
424246fbf3
Issue #14082 : shutil.copy2() now copies extended attributes, if possible.
...
Patch by Hynek Schlawack.
2012-05-12 19:02:01 +02:00
Brett Cannon
c049952de7
Issue #13959 : Have
...
importlib.abc.FileLoader.load_module()/get_filename() and
importlib.machinery.ExtensionFileLoader.load_module() have their
single argument be optional as the loader's constructor has all the
ncessary information.
This allows for the deprecation of
imp.load_source()/load_compile()/load_package().
2012-05-11 14:48:41 -04:00
Brett Cannon
cb66eb0dec
Issue #13959 : Deprecate imp.get_suffixes() for new attributes on
...
importlib.machinery that provide the suffix details for import.
The attributes were not put on imp so as to compartmentalize
everything importlib needs for setting up imports in
importlib.machinery.
This also led to an indirect deprecation of inspect.getmoduleinfo() as
it directly returned imp.get_suffix's returned tuple which no longer
makes sense.
2012-05-11 12:58:42 -04:00
Brett Cannon
810c64df8f
Issue #14764 : Update importlib.test.benchmark to work in a world where
...
import machinery is no longer implicit.
2012-05-11 11:12:00 -04:00
Ned Deily
5fddf866d8
Issue #14662 : Prevent shutil failures on OS X when destination does not
...
support chflag operations. (Patch by Hynek Schlawack)
2012-05-10 17:21:23 -07:00
Ned Deily
baf75713c7
Issue #14662 : Prevent shutil failures on OS X when destination does not
...
support chflag operations. (Patch by Hynek Schlawack)
2012-05-10 17:05:19 -07:00
Benjamin Peterson
569d087574
use yield from
2012-05-10 16:17:35 -05:00
Antoine Pitrou
e8751e05d9
Issue #14157 : Fix time.strptime failing without a year on February 29th.
...
Patch by Hynek Schlawack.
2012-05-10 20:18:46 +02:00
Antoine Pitrou
1682e5d740
Issue #14157 : Fix time.strptime failing without a year on February 29th.
...
Patch by Hynek Schlawack.
2012-05-10 20:17:46 +02:00
Richard Oudkerk
59d5404bc7
Issue #14753 : Make multiprocessing treat negative timeouts as it did in 3.2
...
In Python 3.2 and earlier, Process.join() and Connection.poll()
treated negative timeouts as zero timeouts. Earlier versions from
the 3.3 line of development treat them as infinite timeouts.
The patch reverts to the old behaviour.
2012-05-10 16:11:12 +01:00
Jesus Cea
b58ab2c6aa
MERGE: Closes #14768 : os.path.expanduser('~/a') doesn't works correctly when HOME is '/'
2012-05-10 05:16:41 +02:00
Jesus Cea
7f0d88860f
Closes #14768 : os.path.expanduser('~/a') doesn't works correctly when HOME is '/'
2012-05-10 05:10:50 +02:00
Victor Stinner
f59c28c930
unicode_writer_finish() checks string consistency
2012-05-09 03:24:14 +02:00
Richard Oudkerk
5d73c178a8
Issue #14727 : Fix race in test_multiprocessing
2012-05-08 22:24:47 +01:00
Richard Oudkerk
104b3f4bf7
Minor fix for test_multiprocessing
2012-05-08 16:08:07 +01:00
Benjamin Peterson
869b1f9070
merge 3.2
2012-05-07 22:24:05 -04:00
Benjamin Peterson
3b66623a29
remove basically bitrotted XXXs
2012-05-07 22:23:48 -04:00
Benjamin Peterson
bbf83933c5
explicitly set UnsupportedOperation's module rather than relying on incorrect globals on startup ( closes #14745 )
2012-05-07 22:19:42 -04:00
Mark Dickinson
79575b210f
Issue #14742 : Don't include DirectoryTestCase from test_unparse in test_tools until we can speed it up.
2012-05-07 22:36:43 +01:00
Antoine Pitrou
6efa50a384
Issue #14583 : Fix importlib bug when a package's __init__.py would first import one of its modules then raise an error.
2012-05-07 21:41:59 +02:00
Mark Dickinson
943cab2fec
Issue #14741 : Merge fix from 3.2.
2012-05-07 17:25:14 +01:00
Mark Dickinson
da029fb293
Issue #14741 : Fix missing support for ellipsis in parser module.
2012-05-07 17:24:04 +01:00
Mark Dickinson
72f6095d4f
Issue #14697 : Merge fix from 3.2.
2012-05-07 16:36:33 +01:00
Mark Dickinson
11c1dee183
Issue #14697 : Fix missing parser module support for set displays and set comprehensions.
2012-05-07 16:34:34 +01:00
Mark Dickinson
cf360b9209
Issue #14701 : Add missing support for 'raise ... from' in parser module.
2012-05-07 12:01:27 +01:00
Mark Dickinson
9fad160411
Issue #14701 : Merge fix from 3.2.
2012-05-07 12:03:11 +01:00
Mark Dickinson
99e2e5552a
Issue #14700 : Fix two broken and undefined-behaviour-inducing overflow checks in old-style string formatting. Thanks Serhiy Storchaka for report and original patch.
2012-05-07 11:20:50 +01:00
Mark Dickinson
44ceea9326
Issue #14695 : Run Tools/parser/test_unparse.py as part of test_tools.
2012-05-07 10:27:23 +01:00
Nadeem Vawda
bc459bb484
Rename lzma.check_is_supported() to is_check_supported() to avoid grammatical confusion.
2012-05-06 23:01:51 +02:00
Nadeem Vawda
f55b329edc
Add lzma.{encode,decode}_filter_properties().
2012-05-06 23:01:27 +02:00
Nadeem Vawda
11328e4437
Really fix test_gzip failures on Windows.
2012-05-06 19:24:18 +02:00
Richard Oudkerk
6dbca367dc
Make test_multiprocessing more lenient about another timeout check
2012-05-06 16:46:36 +01:00
Richard Oudkerk
41eb85b194
Make AcquirerProxy.acquire() support timeout argument
2012-05-06 16:45:02 +01:00
Nadeem Vawda
9d9dc8eba0
Fix test_gzip failures on Windows.
2012-05-06 16:25:35 +02:00
Nadeem Vawda
1b8a14d3f0
Separate tests for gzip.GzipFile and gzip.open.
2012-05-06 15:17:52 +02:00
Nadeem Vawda
7e126205e6
Closes #13989 : Add support for text modes to gzip.open().
...
Also, add tests for gzip.open().
2012-05-06 15:04:01 +02:00
Vinay Sajip
f1b34ee61b
#12660 : Skip test_gdb when run from an installed Python.
2012-05-06 12:03:05 +01:00
Vinay Sajip
73954040f6
Issue #9116 : Allowed test to pass on Windows by adjusting the test condition slightly to allow for a Windows-specific error message.
2012-05-06 11:34:50 +01:00
Vinay Sajip
363712349a
Closes #14729 : Allowed test to pass on Windows by adjusting the test condition slightly to allow for a Windows-specific error message.
2012-05-06 11:28:46 +01:00
Georg Brandl
b4c8902a87
#13183 : backport fixes to test_pdb to 3.2 branch
2012-05-06 11:50:00 +02:00
Larry Hastings
faf91e75ab
Issue #14705 : Add 'p' format character to PyArg_ParseTuple* for bool support.
2012-05-05 16:54:29 -07:00
Richard Oudkerk
7ef909cdd7
Fix for issue 14725 for 3.2 branch
2012-05-05 20:41:23 +01:00
Richard Oudkerk
fdb8dcf675
Fix for Issue 14725 for 3.3 branch.
2012-05-05 19:45:37 +01:00
Lars Gustäbel
7a919e9930
Issue #13815 : TarFile.extractfile() now returns io.BufferedReader objects.
...
The ExFileObject class was removed, some of its code went into _FileInFile.
2012-05-05 18:15:03 +02:00
Benjamin Peterson
ef5a4636d0
don't append the bytecode suffix to the source suffixes global
2012-05-05 09:44:08 -04:00
Brett Cannon
feccc09952
Clean up a docstring.
2012-05-04 16:47:54 -04:00
Brett Cannon
f19c191067
Jython-friendly tweak.
2012-05-04 15:46:04 -04:00
Brett Cannon
2657df4744
Issue #13959 : Re-implement imp.get_suffixes() in Lib/imp.py.
...
This introduces a new function, imp.extension_suffixes(), which is
currently undocumented. That is forthcoming once issue #14657 is
resolved and how to expose file suffixes is decided.
2012-05-04 15:20:40 -04:00
Brett Cannon
17098a5447
Properly mark names in importlib._bootstrap as private.
2012-05-04 13:52:49 -04:00
Antoine Pitrou
f340c21ca9
Fix test connecting to sha256.tbs-internet.com.
...
The certificate has changed and the test now needs SNI to pass.
2012-05-04 16:26:56 +02:00
Antoine Pitrou
16f6f8338b
Fix test connecting to sha256.tbs-internet.com.
...
The certificate has changed and the test now needs SNI to pass.
2012-05-04 16:26:02 +02:00
Richard Oudkerk
009b15e2c3
Give test_multiprocessing better chance of avoiding timeout failures on Windows
2012-05-04 09:44:39 +01:00
Larry Hastings
b14544807e
Issue #14127 : Fix no-op stub for platforms that lack some "os" functions.
2012-05-03 12:56:44 -07:00
Richard Oudkerk
a6becaa9cb
Fix dangling warning for test_multiprocessing
2012-05-03 18:29:02 +01:00
Vinay Sajip
ac20f463da
Merged hanged order of cleanup operations from 3.2.
2012-05-03 12:09:38 +01:00
Vinay Sajip
89282afafb
Changed order of cleanup operations to be more sensible.
2012-05-03 12:06:52 +01:00
Larry Hastings
76ad59b7e8
Issue #14127 : Add ns= parameter to utime, futimes, and lutimes.
...
Removed futimens as it is now redundant.
Changed shutil.copystat to use st_atime_ns and st_mtime_ns from os.stat
and ns= parameter to utime--it once again preserves exact metadata on Linux!
2012-05-03 00:30:07 -07:00
Charles-François Natali
598b2f6bd0
Merge.
2012-05-02 20:51:59 +02:00
Charles-François Natali
360b3c21f5
os.popen().close() returns None on success, not 0...
2012-05-02 20:50:13 +02:00
Charles-François Natali
39687ee9db
os.popen().close() returns None on success, not 0...
2012-05-02 20:49:14 +02:00
Richard Oudkerk
225cb8d077
Make test_multiprocessing cleanup properly
...
Previously, when an error was encountered some processes would not be
stopped until atexit callbacks were run. On Windows that was too late
to prevent a PermissionError when regrtest tried to remove the temp
directory it ran the tests in.
2012-05-02 19:36:11 +01:00
Charles-François Natali
d59240de83
Issue #14698 : Make test_posix more robust when the current UID doesn't have an
...
associated pwd entry.
2012-05-02 20:04:40 +02:00
Charles-François Natali
e8a255a5a2
Issue #14698 : Make test_posix more robust when the current UID doesn't have an
...
associated pwd entry.
2012-05-02 20:01:38 +02:00
Martin v. Löwis
67880cc962
Issue #13183 : Revert 0b53b70a40a0 (reenable test on windows)
2012-05-02 07:41:22 +02:00
Senthil Kumaran
bf6c19598a
fix closes issue13183 - windows test failure
2012-05-02 08:01:02 +08:00
Senthil Kumaran
cb172041d3
fix windows test failure - issue13183
2012-05-02 08:00:22 +08:00
Martin v. Löwis
cc1c146c7a
Merge sphinx changes
2012-05-01 18:15:13 +02:00
Benjamin Peterson
1c5ae55c85
don't use assertEqual for test for bool equality
2012-05-01 11:14:32 -04:00
Martin v. Löwis
7f9d181d56
Include micro version even if it is 0.
2012-05-01 16:31:18 +02:00
Benjamin Peterson
8fbd295458
merge 3.2 ( #14699 )
2012-05-01 09:51:46 -04:00
Benjamin Peterson
7295c6a871
fix calling the classmethod descriptor directly ( closes #14699 )
2012-05-01 09:51:09 -04:00
Benjamin Peterson
49a69e4d48
strip is_ prefixes on clock_info fields
2012-05-01 09:38:34 -04:00
Martin v. Löwis
d099b56be7
Check extract_version when opening a zipfile.
2012-05-01 14:08:22 +02:00
Georg Brandl
c9d77b2455
Add an option to timeit to use time.process_time() and mark -t and -c as deprecated.
2012-05-01 11:56:22 +02:00
Georg Brandl
b613a3d458
Disable test_13183 temporarily on Windows for 3.3a3 release.
2012-05-01 09:57:34 +02:00
Georg Brandl
ab0ef20663
Bump to 3.3.0a3.
2012-05-01 09:35:18 +02:00
Georg Brandl
0aca6a8235
Regenerate pydoc topics.
2012-05-01 09:26:47 +02:00
Georg Brandl
4bde9caf74
test_pdb: fix failure of test_issue13183 in debug mode, and make sure files are cleaned up.
2012-05-01 09:21:16 +02:00
Georg Brandl
5c01678174
Add missing comma in __all__ list.
2012-05-01 09:00:59 +02:00
Martin v. Löwis
2a2ce328fb
Recognize unsupported feature "compressed patch data set" from zip 2.7.
2012-05-01 08:44:08 +02:00
Martin v. Löwis
b3260f08cf
Detect unsupported compression types.
2012-05-01 08:38:01 +02:00
Martin v. Löwis
f6b16a4b50
Issue #14371 : Support bzip2 in zipfile module.
...
Patch by Serhiy Storchaka.
2012-05-01 07:58:44 +02:00
Raymond Hettinger
9acbb6074f
Move make_key() out of the decorator body. Make keys that only need to be hashed once.
2012-04-30 22:32:16 -07:00
Raymond Hettinger
018b4fbb9b
Use a flag to indicate when the circular queue is fully populated and stable.
2012-04-30 20:48:55 -07:00
Senthil Kumaran
417c3848d5
issue13183 - Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye
2012-05-01 10:37:11 +08:00
Senthil Kumaran
42d7081806
issue13183 - Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye
2012-05-01 10:07:49 +08:00
Raymond Hettinger
34d94a2101
Handle a possible race condition
2012-04-30 14:14:28 -07:00
Richard Oudkerk
2452419921
Issue #14669 : Skip multiprocessing connection pickling test on MacOSX
...
Passing of fds is unreliable on MacOSX, compare issues #6560 and #12958 .
2012-04-30 14:48:51 +01:00
Richard Oudkerk
4460c3476d
Minor fix for multiprocessing unit test
...
Read from socket might have returned partial message.
2012-04-30 14:48:50 +01:00
Richard Oudkerk
3e268aac3b
Mark multiprocessing files with "Licensed to PSF under a Contributor Agreement"
...
instead of BSD licence.
2012-04-30 12:13:55 +01:00
Raymond Hettinger
b6b98c093e
Track the cache size directly.
2012-04-29 18:09:02 -07:00
Victor Stinner
9a8ad0c5ea
Issue #14428 : Remove test_process_time_threads() from test_time
...
The test is unstable and it's not really interesting to test exactly how
threads are handled.
2012-04-30 01:39:57 +02:00
Victor Stinner
5df72c2c27
Issue #14428 : Make test_process_time_threads() less strict
2012-04-30 00:51:31 +02:00
Alexander Belopolsky
934cb18ef5
merged
2012-04-29 18:20:05 -04:00
Alexander Belopolsky
b8f02b5a5f
fixed test_imaplib failure on Win
2012-04-29 18:16:46 -04:00
Raymond Hettinger
a6df2ee7d0
merge
2012-04-29 14:57:05 -07:00
Raymond Hettinger
9f0ab9f564
Factor out shared variables.
2012-04-29 14:55:27 -07:00
Mark Dickinson
57404891a0
Issue #14696 : Merge from 3.2
2012-04-29 22:20:01 +01:00
Mark Dickinson
407b3bd89b
Issue #14696 : Fix parser module to understand 'nonlocal' declarations.
2012-04-29 22:18:31 +01:00
Alexander Belopolsky
53c6651a17
merge
2012-04-29 16:34:43 -04:00
Alexander Belopolsky
5a38f80f9c
Issue #10941 : Fix imaplib.Internaldate2tuple to produce correct result near
...
the DST transition. Patch by Joe Peterson.
2012-04-29 16:12:27 -04:00
Alexander Belopolsky
2420d83158
Issue #10941 : Fix imaplib.Internaldate2tuple to produce correct result near
...
the DST transition. Patch by Joe Peterson.
2012-04-29 15:56:49 -04:00
Raymond Hettinger
678e7f3be6
Flatten the lru cache keyword args tuple for better memory utilization.
2012-04-29 12:28:02 -07:00
Brett Cannon
1182351e69
Re-indent.
2012-04-29 14:40:43 -04:00
Brett Cannon
6818832ff6
merge
2012-04-29 14:38:57 -04:00