]> granicus.if.org Git - python/log
python
14 years agoFix file closing in test_http_cookiejar.
Brett Cannon [Fri, 29 Oct 2010 23:27:39 +0000 (23:27 +0000)]
Fix file closing in test_http_cookiejar.

14 years agoClean up socket closing in test_ftplib.
Brett Cannon [Fri, 29 Oct 2010 23:26:25 +0000 (23:26 +0000)]
Clean up socket closing in test_ftplib.

14 years agoProperly close files used by test_email.
Brett Cannon [Fri, 29 Oct 2010 23:08:36 +0000 (23:08 +0000)]
Properly close files used by test_email.

14 years agoProperly close a temporary TextIOWrapper in 'email'.
Brett Cannon [Fri, 29 Oct 2010 23:08:13 +0000 (23:08 +0000)]
Properly close a temporary TextIOWrapper in 'email'.

14 years agoProperly close files in test_dbm_dumb.
Brett Cannon [Fri, 29 Oct 2010 22:49:14 +0000 (22:49 +0000)]
Properly close files in test_dbm_dumb.

14 years agoProperly close a test file in test_cprofile.
Brett Cannon [Fri, 29 Oct 2010 22:47:04 +0000 (22:47 +0000)]
Properly close a test file in test_cprofile.

14 years agohave test_asyncore properly close files.
Brett Cannon [Fri, 29 Oct 2010 22:40:44 +0000 (22:40 +0000)]
have test_asyncore properly close files.

14 years agoHave pkgutil properly close files.
Brett Cannon [Fri, 29 Oct 2010 22:36:53 +0000 (22:36 +0000)]
Have pkgutil properly close files.

14 years agoHave distutils.sysconfig close a file to remove ResourceWarnings coming up
Brett Cannon [Fri, 29 Oct 2010 22:36:08 +0000 (22:36 +0000)]
Have distutils.sysconfig close a file to remove ResourceWarnings coming up
during the build from setup.py.

14 years agoplug refleak
Benjamin Peterson [Fri, 29 Oct 2010 21:37:26 +0000 (21:37 +0000)]
plug refleak

14 years agoset literals and unions are our friends
Benjamin Peterson [Fri, 29 Oct 2010 21:33:10 +0000 (21:33 +0000)]
set literals and unions are our friends

14 years agomake gdb skip expected
Benjamin Peterson [Fri, 29 Oct 2010 21:31:35 +0000 (21:31 +0000)]
make gdb skip expected

14 years agoMake file handing in setup.py more robust by using context managers to properly
Brett Cannon [Fri, 29 Oct 2010 20:19:27 +0000 (20:19 +0000)]
Make file handing in setup.py more robust by using context managers to properly
close files.

14 years agoFix typo
Antoine Pitrou [Fri, 29 Oct 2010 19:36:37 +0000 (19:36 +0000)]
Fix typo

14 years agoMake a GC run before trying to clean up files left over by
Antoine Pitrou [Fri, 29 Oct 2010 19:34:45 +0000 (19:34 +0000)]
Make a GC run before trying to clean up files left over by
the latest test run.

14 years agoIssue #9377: Use Unicode API for gethostname on Windows.
Martin v. Löwis [Fri, 29 Oct 2010 18:20:08 +0000 (18:20 +0000)]
Issue #9377: Use Unicode API for gethostname on Windows.

14 years agoIssue #7547: fix transient failures due to network glitches in test_timeout.
Antoine Pitrou [Fri, 29 Oct 2010 18:15:33 +0000 (18:15 +0000)]
Issue #7547: fix transient failures due to network glitches in test_timeout.
Patch by Sandro Tosi.

14 years agoIssue 7061: Explained 'gon'
Alexander Belopolsky [Fri, 29 Oct 2010 17:16:49 +0000 (17:16 +0000)]
Issue 7061: Explained 'gon'

14 years agoFix issue 10214 by removing the out of date python-mode.el and replacing it with...
Barry Warsaw [Fri, 29 Oct 2010 14:01:42 +0000 (14:01 +0000)]
Fix issue 10214 by removing the out of date python-mode.el and replacing it with a README.  Will backport to 3.1 and 2.7.

14 years agoActually restore the original asyncore socket map by making a copy of the dict
Antoine Pitrou [Fri, 29 Oct 2010 11:54:38 +0000 (11:54 +0000)]
Actually restore the original asyncore socket map by making a copy of the dict

14 years agoMake check_warnings error messages more informative
Antoine Pitrou [Fri, 29 Oct 2010 11:54:03 +0000 (11:54 +0000)]
Make check_warnings error messages more informative

14 years agotest___all__ ignores ResourceWarning as well
Antoine Pitrou [Fri, 29 Oct 2010 11:53:34 +0000 (11:53 +0000)]
test___all__ ignores ResourceWarning as well

14 years agoFix ResourceWarning in Lib/test/threaded_import_hangers.py
Antoine Pitrou [Fri, 29 Oct 2010 11:08:32 +0000 (11:08 +0000)]
Fix ResourceWarning in Lib/test/threaded_import_hangers.py

14 years agotest_tarfile: woops, remove +0.001 which was used to debug
Victor Stinner [Fri, 29 Oct 2010 11:02:06 +0000 (11:02 +0000)]
test_tarfile: woops, remove +0.001 which was used to debug

14 years agotest_tarfile: dump mtime as hexadecimal on test_extractall failure
Victor Stinner [Fri, 29 Oct 2010 10:59:08 +0000 (10:59 +0000)]
test_tarfile: dump mtime as hexadecimal on test_extractall failure

14 years agoIssue #10093: ResourceWarnings are now issued when files and sockets are
Antoine Pitrou [Fri, 29 Oct 2010 10:38:18 +0000 (10:38 +0000)]
Issue #10093: ResourceWarnings are now issued when files and sockets are
deallocated without explicit closing.  These warnings are silenced by
default, except in pydebug mode.

14 years agoAdd read support for all missing variants of the GNU sparse
Lars Gustäbel [Fri, 29 Oct 2010 09:08:19 +0000 (09:08 +0000)]
Add read support for all missing variants of the GNU sparse
extensions. Thus, in addition to GNUTYPE_SPARSE headers, sparse
information in pax headers created by GNU tar can now be decoded.
All three formats 0.0, 0.1 and 1.0 are supported.
On filesystems that support this, holes in files are now restored
whenever a sparse member is extracted.

14 years ago(?:...) is a non-capturing, but still grouping construct.
Georg Brandl [Fri, 29 Oct 2010 06:17:38 +0000 (06:17 +0000)]
(?:...) is a non-capturing, but still grouping construct.

14 years agoFix markup error and update false positive entries from "make suspicious".
Georg Brandl [Fri, 29 Oct 2010 05:36:28 +0000 (05:36 +0000)]
Fix markup error and update false positive entries from "make suspicious".

14 years agoPort suspicious markup builder and patchlevel.py so that they can be used with Python...
Georg Brandl [Fri, 29 Oct 2010 05:30:17 +0000 (05:30 +0000)]
Port suspicious markup builder and patchlevel.py so that they can be used with Python 2 and 3 without conversion.

14 years agoRe-add "debugger" label, it is used in pydoc-topics.
Georg Brandl [Fri, 29 Oct 2010 05:24:24 +0000 (05:24 +0000)]
Re-add "debugger" label, it is used in pydoc-topics.

14 years agosend_bytes obviously needs bytes...
Georg Brandl [Fri, 29 Oct 2010 05:22:17 +0000 (05:22 +0000)]
send_bytes obviously needs bytes...

14 years ago#10222: fix for overzealous AIX compiler.
Georg Brandl [Fri, 29 Oct 2010 04:54:13 +0000 (04:54 +0000)]
#10222: fix for overzealous AIX compiler.

14 years agodecrement offset when it points to a newline (#10186 followup)
Benjamin Peterson [Fri, 29 Oct 2010 03:28:14 +0000 (03:28 +0000)]
decrement offset when it points to a newline (#10186 followup)

14 years agoWhat's New in Python 3.2: update Unicode section
Victor Stinner [Fri, 29 Oct 2010 00:57:35 +0000 (00:57 +0000)]
What's New in Python 3.2: update Unicode section

14 years agoIssue #10210: os.get_exec_path() ignores BytesWarning warnings
Victor Stinner [Fri, 29 Oct 2010 00:38:58 +0000 (00:38 +0000)]
Issue #10210: os.get_exec_path() ignores BytesWarning warnings

14 years ago#10209, test_pep277: disable test_normalize and test_listdir on darwin
Victor Stinner [Thu, 28 Oct 2010 23:14:45 +0000 (23:14 +0000)]
#10209, test_pep277: disable test_normalize and test_listdir on darwin

These tests are irrevelant on this OS.

14 years agotest_pep277: disable filenames 11, 12, 13, 14 on darwin
Victor Stinner [Thu, 28 Oct 2010 22:57:03 +0000 (22:57 +0000)]
test_pep277: disable filenames 11, 12, 13, 14 on darwin

Because darwin "normalizes" these filenames differently than Python's NFD
normalization.

14 years agoIssue #5437: A preallocated MemoryError instance should not hold traceback
Antoine Pitrou [Thu, 28 Oct 2010 22:56:58 +0000 (22:56 +0000)]
Issue #5437: A preallocated MemoryError instance should not hold traceback
data (including local variables caught in the stack trace) alive infinitely.

14 years agoFixed a typo in a comment.
Alexander Belopolsky [Thu, 28 Oct 2010 20:13:52 +0000 (20:13 +0000)]
Fixed a typo in a comment.

14 years agoUpdated readme.txt about OpenSSL.
Hirokazu Yamamoto [Thu, 28 Oct 2010 17:57:25 +0000 (17:57 +0000)]
Updated readme.txt about OpenSSL.

14 years ago#10116: wrap transient_internet() around net access in test_urllib2net.
Georg Brandl [Thu, 28 Oct 2010 14:55:02 +0000 (14:55 +0000)]
#10116: wrap transient_internet() around net access in test_urllib2net.

14 years agoFix typo from r85874
Éric Araujo [Thu, 28 Oct 2010 13:49:17 +0000 (13:49 +0000)]
Fix typo from r85874

14 years agoReview new Barrier docs.
Georg Brandl [Thu, 28 Oct 2010 13:07:50 +0000 (13:07 +0000)]
Review new Barrier docs.

14 years agoSupport new Condition return value in the multiprocessing version.
Georg Brandl [Thu, 28 Oct 2010 13:01:06 +0000 (13:01 +0000)]
Support new Condition return value in the multiprocessing version.

14 years agotest_pep277: add identifiers to filenames
Victor Stinner [Thu, 28 Oct 2010 11:20:31 +0000 (11:20 +0000)]
test_pep277: add identifiers to filenames

14 years agotest_pep277: format filename with ascii() on failure
Victor Stinner [Thu, 28 Oct 2010 11:11:24 +0000 (11:11 +0000)]
test_pep277: format filename with ascii() on failure

"%a" instead of "%r"

14 years agotest_pep277: format function argument with ascii() on failure
Victor Stinner [Thu, 28 Oct 2010 11:09:09 +0000 (11:09 +0000)]
test_pep277: format function argument with ascii() on failure

"%a" instead of "%r"

14 years agoissue 8777
Kristján Valur Jónsson [Thu, 28 Oct 2010 09:43:10 +0000 (09:43 +0000)]
issue 8777
Add threading.Barrier

14 years agoCondition.wait now returns bool.
Georg Brandl [Thu, 28 Oct 2010 09:24:56 +0000 (09:24 +0000)]
Condition.wait now returns bool.

14 years ago#10218: return timeout status from Condition.wait, mirroring other primitives' behavior.
Georg Brandl [Thu, 28 Oct 2010 09:03:20 +0000 (09:03 +0000)]
#10218: return timeout status from Condition.wait, mirroring other primitives' behavior.

14 years agoFix bytes/str issues in get-remote-certificate.py.
Georg Brandl [Thu, 28 Oct 2010 08:38:30 +0000 (08:38 +0000)]
Fix bytes/str issues in get-remote-certificate.py.

14 years ago#7351: add more consistent exception name alias.
Georg Brandl [Thu, 28 Oct 2010 06:42:33 +0000 (06:42 +0000)]
#7351: add more consistent exception name alias.

14 years agoIssue #8852: Allow the socket module to build on OpenSolaris.
Antoine Pitrou [Wed, 27 Oct 2010 20:13:57 +0000 (20:13 +0000)]
Issue #8852: Allow the socket module to build on OpenSolaris.

14 years agoAdd David.
Georg Brandl [Wed, 27 Oct 2010 20:01:51 +0000 (20:01 +0000)]
Add David.

14 years agoIn open(), only set the buffer size from st.st_blksize when it is greater
Antoine Pitrou [Wed, 27 Oct 2010 19:45:43 +0000 (19:45 +0000)]
In open(), only set the buffer size from st.st_blksize when it is greater
than 1.  This matches the pure Python implementation in _pyio and should
fix a couple of failures on the NetBSD buildbot.

14 years agoRecode modules from latin-1 to utf-8
Antoine Pitrou [Wed, 27 Oct 2010 18:52:48 +0000 (18:52 +0000)]
Recode modules from latin-1 to utf-8

14 years agoIssue #5027: The standard `xml` namespace is now understood by
Antoine Pitrou [Wed, 27 Oct 2010 18:33:30 +0000 (18:33 +0000)]
Issue #5027: The standard `xml` namespace is now understood by
xml.sax.saxutils.XMLGenerator as being bound to
http://www.w3.org/XML/1998/namespace.  Patch by Troy J. Farrell.

14 years agoIssue #10193: Simplified instrospection used by turtle module
Alexander Belopolsky [Wed, 27 Oct 2010 13:25:45 +0000 (13:25 +0000)]
Issue #10193: Simplified instrospection used by turtle module

14 years ago#5975: add unix_dialect to csv module.
Georg Brandl [Wed, 27 Oct 2010 07:27:06 +0000 (07:27 +0000)]
#5975: add unix_dialect to csv module.

14 years agoEncoding fix.
Georg Brandl [Wed, 27 Oct 2010 07:21:54 +0000 (07:21 +0000)]
Encoding fix.

14 years agoIssue #7061: Dropped "for Tk" from turtle module title and moved its
Alexander Belopolsky [Wed, 27 Oct 2010 03:06:43 +0000 (03:06 +0000)]
Issue #7061: Dropped "for Tk" from turtle module title and moved its
doc section under frameworks.  Also fixed a couple of markup issues
that affected TOC rendering.

14 years agoSimplify PyUnicode_Encode/DecodeFSDefault on Windows/Mac OS X
Victor Stinner [Wed, 27 Oct 2010 00:25:46 +0000 (00:25 +0000)]
Simplify PyUnicode_Encode/DecodeFSDefault on Windows/Mac OS X

 * Windows always uses mbcs
 * Mac OS X always uses utf-8

14 years agoFix import.
Georg Brandl [Tue, 26 Oct 2010 20:12:37 +0000 (20:12 +0000)]
Fix import.

14 years ago#10200: typo.
Georg Brandl [Tue, 26 Oct 2010 19:58:11 +0000 (19:58 +0000)]
#10200: typo.

14 years ago#10200: typo.
Georg Brandl [Tue, 26 Oct 2010 19:31:06 +0000 (19:31 +0000)]
#10200: typo.

14 years agologging: Improved Formatter implementation.
Vinay Sajip [Tue, 26 Oct 2010 13:16:11 +0000 (13:16 +0000)]
logging: Improved Formatter implementation.

14 years ago#7761: fix telnetlib.interact failures on Windows.
R. David Murray [Tue, 26 Oct 2010 12:42:24 +0000 (12:42 +0000)]
#7761: fix telnetlib.interact failures on Windows.

14 years agofaqwiz is removed.
Georg Brandl [Tue, 26 Oct 2010 10:42:16 +0000 (10:42 +0000)]
faqwiz is removed.

14 years agoWork a bit more on tkinter demos.
Georg Brandl [Tue, 26 Oct 2010 10:39:14 +0000 (10:39 +0000)]
Work a bit more on tkinter demos.

14 years agoMarkup fix.
Georg Brandl [Tue, 26 Oct 2010 06:59:23 +0000 (06:59 +0000)]
Markup fix.

14 years ago#3018: tkinter demo fixes for py3k.
Georg Brandl [Mon, 25 Oct 2010 17:50:20 +0000 (17:50 +0000)]
#3018: tkinter demo fixes for py3k.

14 years agosys_update_path(): update sys.path even if argc==0
Victor Stinner [Mon, 25 Oct 2010 17:37:23 +0000 (17:37 +0000)]
sys_update_path(): update sys.path even if argc==0

14 years agoupdate gitignore
Victor Stinner [Mon, 25 Oct 2010 17:37:18 +0000 (17:37 +0000)]
update gitignore

14 years agoFix issue10192 - add urlencode to urllib.parse.__all__
Senthil Kumaran [Mon, 25 Oct 2010 16:36:20 +0000 (16:36 +0000)]
Fix issue10192 - add urlencode to urllib.parse.__all__

14 years agologging: Formatter implementation tweak.
Vinay Sajip [Mon, 25 Oct 2010 15:25:24 +0000 (15:25 +0000)]
logging: Formatter implementation tweak.

14 years agologging: Added style option to Formatter to allow %, {} or himBHformatting.
Vinay Sajip [Mon, 25 Oct 2010 13:57:39 +0000 (13:57 +0000)]
logging: Added style option to Formatter to allow %, {} or himBHformatting.

14 years agoIssue #10143: Update "os.pathconf" values
Jesus Cea [Mon, 25 Oct 2010 13:02:04 +0000 (13:02 +0000)]
Issue #10143: Update "os.pathconf" values

14 years agotest_gdb should be skipped on darwin (not up to v7 yet)
Skip Montanaro [Mon, 25 Oct 2010 01:35:48 +0000 (01:35 +0000)]
test_gdb should be skipped on darwin (not up to v7 yet)

14 years agostr.encode() doesn't accept None as errors: use 'strict' instead
Victor Stinner [Sun, 24 Oct 2010 21:12:26 +0000 (21:12 +0000)]
str.encode() doesn't accept None as errors: use 'strict' instead

14 years agoIssue #10161: test_pep277 formats filenames with ascii() on error
Victor Stinner [Sun, 24 Oct 2010 21:05:03 +0000 (21:05 +0000)]
Issue #10161: test_pep277 formats filenames with ascii() on error

As suggested by Antoine, it's better to patch only test_pep277 than the
unittest module.

14 years agoThese are true PyCFunctions, after adding the second argument to oss_self, no need...
Georg Brandl [Sun, 24 Oct 2010 20:47:32 +0000 (20:47 +0000)]
These are true PyCFunctions, after adding the second argument to oss_self, no need to cast.

14 years agoIssue #8761: Mangle PyUnicode_CompareWithASCIIString function name for
Victor Stinner [Sun, 24 Oct 2010 20:38:25 +0000 (20:38 +0000)]
Issue #8761: Mangle PyUnicode_CompareWithASCIIString function name for
narrow/wide unicode build.

14 years agoos: fsencode(), fsdecode() and os.environ(b) internal encode-decode methods
Victor Stinner [Sun, 24 Oct 2010 20:32:26 +0000 (20:32 +0000)]
os: fsencode(), fsdecode() and os.environ(b) internal encode-decode methods
keep a local copy of the fileystem encoding, instead of calling
sys.getfilesystemencoding() each time.

The filesystem encoding is now constant.

14 years agoAdd documentation about the default warnings filters.
Georg Brandl [Sun, 24 Oct 2010 15:16:02 +0000 (15:16 +0000)]
Add documentation about the default warnings filters.

14 years agoAdd a new warning gategory, ResourceWarning, as discussed on python-dev. It is silen...
Georg Brandl [Sun, 24 Oct 2010 15:11:22 +0000 (15:11 +0000)]
Add a new warning gategory, ResourceWarning, as discussed on python-dev.  It is silent by default,
except when configured --with-pydebug.

Emit this warning from the GC shutdown procedure, rather than just printing to stderr.

14 years agoFix style.
Georg Brandl [Sun, 24 Oct 2010 14:32:45 +0000 (14:32 +0000)]
Fix style.

14 years agoAdd casts (one needed, one for consistency).
Georg Brandl [Sun, 24 Oct 2010 14:21:42 +0000 (14:21 +0000)]
Add casts (one needed, one for consistency).

14 years agoRemove usage of exception indexing.
Georg Brandl [Sun, 24 Oct 2010 14:20:22 +0000 (14:20 +0000)]
Remove usage of exception indexing.

14 years agoIssue 5178: Add tempfile.TemporaryDirectory (original patch by Neil Schemenauer)
Nick Coghlan [Sun, 24 Oct 2010 11:23:25 +0000 (11:23 +0000)]
Issue 5178: Add tempfile.TemporaryDirectory (original patch by Neil Schemenauer)

14 years agotighten loop
Benjamin Peterson [Sun, 24 Oct 2010 03:41:46 +0000 (03:41 +0000)]
tighten loop

14 years agoremove broken code accounting an offset the size of the line #10186
Benjamin Peterson [Sun, 24 Oct 2010 02:52:05 +0000 (02:52 +0000)]
remove broken code accounting an offset the size of the line #10186

14 years ago#1349106: add linesep argument to generator.flatten and header.encode.
R. David Murray [Sat, 23 Oct 2010 22:19:56 +0000 (22:19 +0000)]
#1349106: add linesep argument to generator.flatten and header.encode.

14 years agoIssue #10185: use Py_hash_t instead of long
Antoine Pitrou [Sat, 23 Oct 2010 19:42:38 +0000 (19:42 +0000)]
Issue #10185: use Py_hash_t instead of long

14 years agoRevert r85801. The test ought to pass without rounding.
Martin v. Löwis [Sat, 23 Oct 2010 19:02:30 +0000 (19:02 +0000)]
Revert r85801. The test ought to pass without rounding.

14 years agoFollow up to #9778: fix regressions on 64-bit Windows builds
Antoine Pitrou [Sat, 23 Oct 2010 17:37:54 +0000 (17:37 +0000)]
Follow up to #9778: fix regressions on 64-bit Windows builds

14 years ago#6518: enable context manager protocol for ossaudiodev types.
Georg Brandl [Sat, 23 Oct 2010 17:31:52 +0000 (17:31 +0000)]
#6518: enable context manager protocol for ossaudiodev types.

14 years agoAlso guard other SOCK_NONBLOCK test
Antoine Pitrou [Sat, 23 Oct 2010 17:05:13 +0000 (17:05 +0000)]
Also guard other SOCK_NONBLOCK test

14 years agoIssue #6011: sysconfig and distutils.sysconfig use the surrogateescape error
Victor Stinner [Sat, 23 Oct 2010 17:02:31 +0000 (17:02 +0000)]
Issue #6011: sysconfig and distutils.sysconfig use the surrogateescape error
handler to parse the Makefile file. Avoid a UnicodeDecodeError if the source
code directory name contains a non-ASCII character and the locale encoding is
ASCII.

14 years agoFix SOCK_CLOEXEC and SOCK_NONBLOCK tests on recent glibcs with old Linux kernels.
Antoine Pitrou [Sat, 23 Oct 2010 17:01:44 +0000 (17:01 +0000)]
Fix SOCK_CLOEXEC and SOCK_NONBLOCK tests on recent glibcs with old Linux kernels.