]> granicus.if.org Git - python/log
python
14 years agoFix ResourceWarning occuring on Windows. Close stdout/stderr pipes.
Brian Curtin [Mon, 1 Nov 2010 16:40:17 +0000 (16:40 +0000)]
Fix ResourceWarning occuring on Windows. Close stdout/stderr pipes.

14 years agoFix for issue 9355 where with multiple mutually exclusive arguments, some brackets...
Steven Bethard [Mon, 1 Nov 2010 16:29:26 +0000 (16:29 +0000)]
Fix for issue 9355 where with multiple mutually exclusive arguments, some brackets were being lost in the usage messages

14 years agoFix bug 9352 where characters were being lost in parsing some short options
Steven Bethard [Mon, 1 Nov 2010 15:57:36 +0000 (15:57 +0000)]
Fix bug 9352 where characters were being lost in parsing some short options

14 years agoIssue #7061: Simplified a section title.
Alexander Belopolsky [Mon, 1 Nov 2010 15:45:34 +0000 (15:45 +0000)]
Issue #7061: Simplified a section title.

14 years agoGet argparse.__all__ back up to date (issue 9353)
Steven Bethard [Mon, 1 Nov 2010 15:23:12 +0000 (15:23 +0000)]
Get argparse.__all__ back up to date (issue 9353)

14 years agoClose subprocess pipes to clear ResourceWarning messages in debug mode.
Brian Curtin [Mon, 1 Nov 2010 14:00:33 +0000 (14:00 +0000)]
Close subprocess pipes to clear ResourceWarning messages in debug mode.

14 years agoUnset COLUMNS for test_argparse (and restore afterwards) (issue 9553)
Steven Bethard [Mon, 1 Nov 2010 13:56:09 +0000 (13:56 +0000)]
Unset COLUMNS for test_argparse (and restore afterwards) (issue 9553)

14 years agoFix some ResourceErrors.
Brian Curtin [Mon, 1 Nov 2010 05:10:44 +0000 (05:10 +0000)]
Fix some ResourceErrors.
Use a context manager for os.popen and explicitly close a socket.

14 years agofix output for getaddrinfo bug check #7059
Benjamin Peterson [Mon, 1 Nov 2010 01:44:30 +0000 (01:44 +0000)]
fix output for getaddrinfo bug check #7059

14 years agoIssue #9886: Add a key-function entry to the glossary.
Raymond Hettinger [Sun, 31 Oct 2010 22:36:06 +0000 (22:36 +0000)]
Issue #9886: Add a key-function entry to the glossary.

14 years agoIssue 7402: Improve reduce() example in the python idioms how-to.
Raymond Hettinger [Sun, 31 Oct 2010 22:00:50 +0000 (22:00 +0000)]
Issue 7402: Improve reduce() example in the python idioms how-to.

14 years agoIssue #10265: Close file objects explicitly in sunau. Patch by Brian Brazil.
Antoine Pitrou [Sun, 31 Oct 2010 21:27:04 +0000 (21:27 +0000)]
Issue #10265: Close file objects explicitly in sunau.  Patch by Brian Brazil.

14 years agoIssue 7447: Improve docs for sum().
Raymond Hettinger [Sun, 31 Oct 2010 21:23:24 +0000 (21:23 +0000)]
Issue 7447: Improve docs for sum().

14 years agoNo declarations in the middle of a block (fixes compile under Windows)
Antoine Pitrou [Sun, 31 Oct 2010 21:03:01 +0000 (21:03 +0000)]
No declarations in the middle of a block (fixes compile under Windows)

14 years agoset native eol on new files
Benjamin Peterson [Sun, 31 Oct 2010 20:35:08 +0000 (20:35 +0000)]
set native eol on new files

14 years agoset eol-style on new doc files
Benjamin Peterson [Sun, 31 Oct 2010 20:33:35 +0000 (20:33 +0000)]
set eol-style on new doc files

14 years agoclose the source's byte stream
Benjamin Peterson [Sun, 31 Oct 2010 20:03:32 +0000 (20:03 +0000)]
close the source's byte stream

14 years agofix ftplib resource warnings
Benjamin Peterson [Sun, 31 Oct 2010 19:58:07 +0000 (19:58 +0000)]
fix ftplib resource warnings

14 years agofix resource warnings in test_sax #10269
Benjamin Peterson [Sun, 31 Oct 2010 18:23:23 +0000 (18:23 +0000)]
fix resource warnings in test_sax #10269

14 years agowrap some things in with blocks
Benjamin Peterson [Sun, 31 Oct 2010 18:21:16 +0000 (18:21 +0000)]
wrap some things in with blocks

14 years agomore fun with string exceptions
Benjamin Peterson [Sun, 31 Oct 2010 18:13:04 +0000 (18:13 +0000)]
more fun with string exceptions

14 years agostring exceptions; how quaint
Benjamin Peterson [Sun, 31 Oct 2010 17:59:20 +0000 (17:59 +0000)]
string exceptions; how quaint

14 years agoIssue 10110: Let Queue.put recognize a full queue when the maxsize parameter has...
Raymond Hettinger [Sun, 31 Oct 2010 17:57:52 +0000 (17:57 +0000)]
Issue 10110:  Let Queue.put recognize a full queue when the maxsize parameter has been reduced.

14 years agostart banging on zipfile's file leakiness
Benjamin Peterson [Sun, 31 Oct 2010 17:57:22 +0000 (17:57 +0000)]
start banging on zipfile's file leakiness

14 years agofix leaking sockets
Benjamin Peterson [Sun, 31 Oct 2010 17:34:34 +0000 (17:34 +0000)]
fix leaking sockets

14 years agocleanup resources in test_smtplib #10264
Benjamin Peterson [Sun, 31 Oct 2010 17:15:42 +0000 (17:15 +0000)]
cleanup resources in test_smtplib #10264

14 years agoadd --enable-loadable-sqlite-extensions #10268
Benjamin Peterson [Sun, 31 Oct 2010 17:11:02 +0000 (17:11 +0000)]
add --enable-loadable-sqlite-extensions #10268

14 years agoadd no output to with-system-ffi and with-system-expat
Benjamin Peterson [Sun, 31 Oct 2010 16:50:44 +0000 (16:50 +0000)]
add no output to with-system-ffi and with-system-expat

14 years agotypo
Benjamin Peterson [Sun, 31 Oct 2010 16:38:19 +0000 (16:38 +0000)]
typo

14 years agoIssue #10266: uu.decode didn't close in_file explicitly when it was given
Antoine Pitrou [Sun, 31 Oct 2010 16:04:14 +0000 (16:04 +0000)]
Issue #10266: uu.decode didn't close in_file explicitly when it was given
as a filename.  Patch by Brian Brazil.

14 years agoIssue #10160: Speed up operator.attrgetter. Patch by Christos Georgiou.
Antoine Pitrou [Sun, 31 Oct 2010 15:26:04 +0000 (15:26 +0000)]
Issue #10160: Speed up operator.attrgetter.  Patch by Christos Georgiou.

14 years agoUpdated NEWS about logging.basicConfig().
Vinay Sajip [Sun, 31 Oct 2010 15:11:43 +0000 (15:11 +0000)]
Updated NEWS about logging.basicConfig().

14 years agoAdded style argument to logging.basicConfig() and documented this change.
Vinay Sajip [Sun, 31 Oct 2010 14:59:16 +0000 (14:59 +0000)]
Added style argument to logging.basicConfig() and documented this change.

14 years agoPY_CFLAGS doesn't exist under Windows
Antoine Pitrou [Sun, 31 Oct 2010 11:34:47 +0000 (11:34 +0000)]
PY_CFLAGS doesn't exist under Windows

14 years agoIssue #5729: json.dumps to support using '\t' as an indent string
Raymond Hettinger [Sun, 31 Oct 2010 08:00:16 +0000 (08:00 +0000)]
Issue #5729: json.dumps to support using '\t' as an indent string

14 years agoFix a ResourceWarning for an unclosed socket.
Brian Curtin [Sun, 31 Oct 2010 04:40:53 +0000 (04:40 +0000)]
Fix a ResourceWarning for an unclosed socket.

14 years agoissue 10237
Kristján Valur Jónsson [Sun, 31 Oct 2010 03:00:57 +0000 (03:00 +0000)]
issue 10237
After increasing the default timeout for the barrier, the unittest for the default timeout must be adjusted

14 years agoclose some more files
Benjamin Peterson [Sun, 31 Oct 2010 02:06:21 +0000 (02:06 +0000)]
close some more files

14 years agocontext managerify
Benjamin Peterson [Sun, 31 Oct 2010 01:44:49 +0000 (01:44 +0000)]
context managerify

14 years agoclose file properly
Benjamin Peterson [Sun, 31 Oct 2010 01:35:53 +0000 (01:35 +0000)]
close file properly

14 years agouse addCleanup
Benjamin Peterson [Sun, 31 Oct 2010 01:35:43 +0000 (01:35 +0000)]
use addCleanup

14 years agopatch up leaking fds
Benjamin Peterson [Sun, 31 Oct 2010 01:30:11 +0000 (01:30 +0000)]
patch up leaking fds

14 years agothis test manages the fds itself
Benjamin Peterson [Sun, 31 Oct 2010 01:19:53 +0000 (01:19 +0000)]
this test manages the fds itself

14 years agoFix ResourceWarning for unclosed files (from os.popen)
Brian Curtin [Sun, 31 Oct 2010 01:10:58 +0000 (01:10 +0000)]
Fix ResourceWarning for unclosed files (from os.popen)

14 years agoIssues #7061, #10225: Fixed doctests in turtle manual
Alexander Belopolsky [Sun, 31 Oct 2010 00:51:11 +0000 (00:51 +0000)]
Issues #7061, #10225: Fixed doctests in turtle manual

14 years agoFix ResourceWarning for an unclosed socket.
Brian Curtin [Sun, 31 Oct 2010 00:34:23 +0000 (00:34 +0000)]
Fix ResourceWarning for an unclosed socket.
test_return_header_keep_alive - Added a cleanup call for the socket.

14 years agoFix ResourceWarning. Use context manager to properly close file.
Brian Curtin [Sun, 31 Oct 2010 00:03:45 +0000 (00:03 +0000)]
Fix ResourceWarning. Use context manager to properly close file.

14 years agoFix ResourceWarning about unclosed file
Brian Curtin [Sat, 30 Oct 2010 23:56:45 +0000 (23:56 +0000)]
Fix ResourceWarning about unclosed file

14 years agoclose files correctly
Benjamin Peterson [Sat, 30 Oct 2010 23:51:34 +0000 (23:51 +0000)]
close files correctly

14 years agoif FileIO.__init__ fails, close fd
Benjamin Peterson [Sat, 30 Oct 2010 23:16:28 +0000 (23:16 +0000)]
if FileIO.__init__ fails, close fd

14 years agofix style
Benjamin Peterson [Sat, 30 Oct 2010 23:13:57 +0000 (23:13 +0000)]
fix style

14 years agoclose open file from find_module()
Benjamin Peterson [Sat, 30 Oct 2010 23:06:57 +0000 (23:06 +0000)]
close open file from find_module()

14 years agocondense
Benjamin Peterson [Sat, 30 Oct 2010 23:04:49 +0000 (23:04 +0000)]
condense

14 years agokill pointless function imports
Benjamin Peterson [Sat, 30 Oct 2010 23:01:58 +0000 (23:01 +0000)]
kill pointless function imports

14 years agoremove useless assignment
Benjamin Peterson [Sat, 30 Oct 2010 23:00:54 +0000 (23:00 +0000)]
remove useless assignment

14 years agoclose files properly
Benjamin Peterson [Sat, 30 Oct 2010 22:59:37 +0000 (22:59 +0000)]
close files properly

14 years agoFix #10258 - clean up resource warning
Brian Curtin [Sat, 30 Oct 2010 21:35:28 +0000 (21:35 +0000)]
Fix #10258 - clean up resource warning

14 years agoFix #10257. Clear resource warnings by using os.popen's context manager.
Brian Curtin [Sat, 30 Oct 2010 21:24:21 +0000 (21:24 +0000)]
Fix #10257. Clear resource warnings by using os.popen's context manager.

14 years agoFix #10256 - resource warning
Brian Curtin [Sat, 30 Oct 2010 21:03:18 +0000 (21:03 +0000)]
Fix #10256 - resource warning

14 years agoIssue #10250: fix resource warnings in test_urllib2_localnet. Patch by Brian Brazil.
Antoine Pitrou [Sat, 30 Oct 2010 17:33:22 +0000 (17:33 +0000)]
Issue #10250: fix resource warnings in test_urllib2_localnet.  Patch by Brian Brazil.

14 years agoIssue #10253: FileIO leaks a file descriptor when trying to open a file
Antoine Pitrou [Sat, 30 Oct 2010 16:19:14 +0000 (16:19 +0000)]
Issue #10253: FileIO leaks a file descriptor when trying to open a file
for append that isn't seekable.  Patch by Brian Brazil.

14 years agoIssue #10157: Fixed refleaks in pythonrun.c. Patch by Stefan Krah.
Hirokazu Yamamoto [Sat, 30 Oct 2010 15:08:15 +0000 (15:08 +0000)]
Issue #10157: Fixed refleaks in pythonrun.c. Patch by Stefan Krah.

14 years agoFix test_mailbox by supporting context manager protocol for get_file() returns.
Georg Brandl [Sat, 30 Oct 2010 14:33:28 +0000 (14:33 +0000)]
Fix test_mailbox by supporting context manager protocol for get_file() returns.

14 years agoFix resource warning in test_unicodedata. Patch by Brian Brazil.
Antoine Pitrou [Sat, 30 Oct 2010 14:24:33 +0000 (14:24 +0000)]
Fix resource warning in test_unicodedata. Patch by Brian Brazil.

14 years agoFix resource warning in test_file. Patch by Brian Brazil.
Antoine Pitrou [Sat, 30 Oct 2010 14:22:43 +0000 (14:22 +0000)]
Fix resource warning in test_file. Patch by Brian Brazil.

14 years agoIssue #10246: uu.encode didn't close file objects explicitly when filenames
Antoine Pitrou [Sat, 30 Oct 2010 13:03:56 +0000 (13:03 +0000)]
Issue #10246: uu.encode didn't close file objects explicitly when filenames
were given to it.  Patch by Brian Brazil.

14 years agoRemove ResourceWarnings caused by files left open.
Vinay Sajip [Sat, 30 Oct 2010 09:50:18 +0000 (09:50 +0000)]
Remove ResourceWarnings caused by files left open.

14 years ago#10198: fix duplicate header when writeframes() is called with an empty string.
Georg Brandl [Sat, 30 Oct 2010 08:29:28 +0000 (08:29 +0000)]
#10198: fix duplicate header when writeframes() is called with an empty string.

14 years agoIssue 10221: Improve error message for dict.pop().
Raymond Hettinger [Sat, 30 Oct 2010 08:10:29 +0000 (08:10 +0000)]
Issue 10221: Improve error message for dict.pop().

14 years agoissue 10237
Kristján Valur Jónsson [Sat, 30 Oct 2010 05:15:42 +0000 (05:15 +0000)]
issue 10237
Increase the default timout of the barries used in the barrier tests.  This should solve unexpected timeouts on some machines.

14 years agoSilence ResourceWarnings in modulefinder by using file context managers.
Brett Cannon [Sat, 30 Oct 2010 00:26:48 +0000 (00:26 +0000)]
Silence ResourceWarnings in modulefinder by using file context managers.

14 years agoAdd some missing entries related to the various ResourceWarning fixes I have committed.
Brett Cannon [Sat, 30 Oct 2010 00:18:54 +0000 (00:18 +0000)]
Add some missing entries related to the various ResourceWarning fixes I have committed.

14 years agoProperly close a file in test_minidom.
Brett Cannon [Sat, 30 Oct 2010 00:14:59 +0000 (00:14 +0000)]
Properly close a file in test_minidom.

14 years agoSilence some ResourceWarning in test_mailbox by using file context managers.
Brett Cannon [Sat, 30 Oct 2010 00:13:00 +0000 (00:13 +0000)]
Silence some ResourceWarning in test_mailbox by using file context managers.
Also call super().tearDown() where appropriate.

14 years agoWindows can't remove a file before it is closed
Antoine Pitrou [Fri, 29 Oct 2010 23:55:55 +0000 (23:55 +0000)]
Windows can't remove a file before it is closed

14 years agoMove test_linecache over to file context managers.
Brett Cannon [Fri, 29 Oct 2010 23:55:51 +0000 (23:55 +0000)]
Move test_linecache over to file context managers.

14 years agoUse a file context manager for test_ioctl.
Brett Cannon [Fri, 29 Oct 2010 23:54:28 +0000 (23:54 +0000)]
Use a file context manager for test_ioctl.

14 years agoSilence ResourceWarning when testing that the file destructor closes the file.
Brett Cannon [Fri, 29 Oct 2010 23:53:03 +0000 (23:53 +0000)]
Silence ResourceWarning when testing that the file destructor closes the file.

14 years agoIssue #10233: Close file objects in a timely manner in the tarfile module
Antoine Pitrou [Fri, 29 Oct 2010 23:49:49 +0000 (23:49 +0000)]
Issue #10233: Close file objects in a timely manner in the tarfile module
and its test suite.

14 years agoMove test_imp over to file context managers.
Brett Cannon [Fri, 29 Oct 2010 23:47:23 +0000 (23:47 +0000)]
Move test_imp over to file context managers.

14 years agoMove test_httpservers over to file context managers.
Brett Cannon [Fri, 29 Oct 2010 23:43:42 +0000 (23:43 +0000)]
Move test_httpservers over to file context managers.

14 years agoClean up socket closing in test_ssl and test.ssl_servers
Antoine Pitrou [Fri, 29 Oct 2010 23:41:37 +0000 (23:41 +0000)]
Clean up socket closing in test_ssl and test.ssl_servers

14 years agoMove test_httplib over to file context managers.
Brett Cannon [Fri, 29 Oct 2010 23:31:11 +0000 (23:31 +0000)]
Move test_httplib over to file context managers.

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.