]>
granicus.if.org Git - python/log
Benjamin Peterson [Sun, 31 Oct 2010 17:57:22 +0000 (17:57 +0000)]
start banging on zipfile's file leakiness
Benjamin Peterson [Sun, 31 Oct 2010 17:34:34 +0000 (17:34 +0000)]
fix leaking sockets
Benjamin Peterson [Sun, 31 Oct 2010 17:15:42 +0000 (17:15 +0000)]
cleanup resources in test_smtplib #10264
Benjamin Peterson [Sun, 31 Oct 2010 17:11:02 +0000 (17:11 +0000)]
add --enable-loadable-sqlite-extensions #10268
Benjamin Peterson [Sun, 31 Oct 2010 16:50:44 +0000 (16:50 +0000)]
add no output to with-system-ffi and with-system-expat
Benjamin Peterson [Sun, 31 Oct 2010 16:38:19 +0000 (16:38 +0000)]
typo
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.
Antoine Pitrou [Sun, 31 Oct 2010 15:26:04 +0000 (15:26 +0000)]
Issue #10160: Speed up operator.attrgetter. Patch by Christos Georgiou.
Vinay Sajip [Sun, 31 Oct 2010 15:11:43 +0000 (15:11 +0000)]
Updated NEWS about logging.basicConfig().
Vinay Sajip [Sun, 31 Oct 2010 14:59:16 +0000 (14:59 +0000)]
Added style argument to logging.basicConfig() and documented this change.
Antoine Pitrou [Sun, 31 Oct 2010 11:34:47 +0000 (11:34 +0000)]
PY_CFLAGS doesn't exist under Windows
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
Brian Curtin [Sun, 31 Oct 2010 04:40:53 +0000 (04:40 +0000)]
Fix a ResourceWarning for an unclosed socket.
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
Benjamin Peterson [Sun, 31 Oct 2010 02:06:21 +0000 (02:06 +0000)]
close some more files
Benjamin Peterson [Sun, 31 Oct 2010 01:44:49 +0000 (01:44 +0000)]
context managerify
Benjamin Peterson [Sun, 31 Oct 2010 01:35:53 +0000 (01:35 +0000)]
close file properly
Benjamin Peterson [Sun, 31 Oct 2010 01:35:43 +0000 (01:35 +0000)]
use addCleanup
Benjamin Peterson [Sun, 31 Oct 2010 01:30:11 +0000 (01:30 +0000)]
patch up leaking fds
Benjamin Peterson [Sun, 31 Oct 2010 01:19:53 +0000 (01:19 +0000)]
this test manages the fds itself
Brian Curtin [Sun, 31 Oct 2010 01:10:58 +0000 (01:10 +0000)]
Fix ResourceWarning for unclosed files (from os.popen)
Alexander Belopolsky [Sun, 31 Oct 2010 00:51:11 +0000 (00:51 +0000)]
Issues #7061, #10225: Fixed doctests in turtle manual
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.
Brian Curtin [Sun, 31 Oct 2010 00:03:45 +0000 (00:03 +0000)]
Fix ResourceWarning. Use context manager to properly close file.
Brian Curtin [Sat, 30 Oct 2010 23:56:45 +0000 (23:56 +0000)]
Fix ResourceWarning about unclosed file
Benjamin Peterson [Sat, 30 Oct 2010 23:51:34 +0000 (23:51 +0000)]
close files correctly
Benjamin Peterson [Sat, 30 Oct 2010 23:16:28 +0000 (23:16 +0000)]
if FileIO.__init__ fails, close fd
Benjamin Peterson [Sat, 30 Oct 2010 23:13:57 +0000 (23:13 +0000)]
fix style
Benjamin Peterson [Sat, 30 Oct 2010 23:06:57 +0000 (23:06 +0000)]
close open file from find_module()
Benjamin Peterson [Sat, 30 Oct 2010 23:04:49 +0000 (23:04 +0000)]
condense
Benjamin Peterson [Sat, 30 Oct 2010 23:01:58 +0000 (23:01 +0000)]
kill pointless function imports
Benjamin Peterson [Sat, 30 Oct 2010 23:00:54 +0000 (23:00 +0000)]
remove useless assignment
Benjamin Peterson [Sat, 30 Oct 2010 22:59:37 +0000 (22:59 +0000)]
close files properly
Brian Curtin [Sat, 30 Oct 2010 21:35:28 +0000 (21:35 +0000)]
Fix #10258 - clean up resource warning
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.
Brian Curtin [Sat, 30 Oct 2010 21:03:18 +0000 (21:03 +0000)]
Fix #10256 - resource warning
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.
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.
Hirokazu Yamamoto [Sat, 30 Oct 2010 15:08:15 +0000 (15:08 +0000)]
Issue #10157: Fixed refleaks in pythonrun.c. Patch by Stefan Krah.
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.
Antoine Pitrou [Sat, 30 Oct 2010 14:24:33 +0000 (14:24 +0000)]
Fix resource warning in test_unicodedata. 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.
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.
Vinay Sajip [Sat, 30 Oct 2010 09:50:18 +0000 (09:50 +0000)]
Remove ResourceWarnings caused by files left open.
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.
Raymond Hettinger [Sat, 30 Oct 2010 08:10:29 +0000 (08:10 +0000)]
Issue 10221: Improve error message for dict.pop().
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.
Brett Cannon [Sat, 30 Oct 2010 00:26:48 +0000 (00:26 +0000)]
Silence ResourceWarnings in modulefinder by using file context managers.
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.
Brett Cannon [Sat, 30 Oct 2010 00:14:59 +0000 (00:14 +0000)]
Properly close a file in test_minidom.
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.
Antoine Pitrou [Fri, 29 Oct 2010 23:55:55 +0000 (23:55 +0000)]
Windows can't remove a file before it is closed
Brett Cannon [Fri, 29 Oct 2010 23:55:51 +0000 (23:55 +0000)]
Move test_linecache over to file context managers.
Brett Cannon [Fri, 29 Oct 2010 23:54:28 +0000 (23:54 +0000)]
Use a file context manager for test_ioctl.
Brett Cannon [Fri, 29 Oct 2010 23:53:03 +0000 (23:53 +0000)]
Silence ResourceWarning when testing that the file destructor closes the file.
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.
Brett Cannon [Fri, 29 Oct 2010 23:47:23 +0000 (23:47 +0000)]
Move test_imp 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.
Antoine Pitrou [Fri, 29 Oct 2010 23:41:37 +0000 (23:41 +0000)]
Clean up socket closing in test_ssl and test.ssl_servers
Brett Cannon [Fri, 29 Oct 2010 23:31:11 +0000 (23:31 +0000)]
Move test_httplib over to file context managers.
Brett Cannon [Fri, 29 Oct 2010 23:27:39 +0000 (23:27 +0000)]
Fix file closing in test_http_cookiejar.
Brett Cannon [Fri, 29 Oct 2010 23:26:25 +0000 (23:26 +0000)]
Clean up socket closing in test_ftplib.
Brett Cannon [Fri, 29 Oct 2010 23:08:36 +0000 (23:08 +0000)]
Properly close files used by test_email.
Brett Cannon [Fri, 29 Oct 2010 23:08:13 +0000 (23:08 +0000)]
Properly close a temporary TextIOWrapper in 'email'.
Brett Cannon [Fri, 29 Oct 2010 22:49:14 +0000 (22:49 +0000)]
Properly close files in test_dbm_dumb.
Brett Cannon [Fri, 29 Oct 2010 22:47:04 +0000 (22:47 +0000)]
Properly close a test file in test_cprofile.
Brett Cannon [Fri, 29 Oct 2010 22:40:44 +0000 (22:40 +0000)]
have test_asyncore properly close files.
Brett Cannon [Fri, 29 Oct 2010 22:36:53 +0000 (22:36 +0000)]
Have pkgutil properly close files.
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.
Benjamin Peterson [Fri, 29 Oct 2010 21:37:26 +0000 (21:37 +0000)]
plug refleak
Benjamin Peterson [Fri, 29 Oct 2010 21:33:10 +0000 (21:33 +0000)]
set literals and unions are our friends
Benjamin Peterson [Fri, 29 Oct 2010 21:31:35 +0000 (21:31 +0000)]
make gdb skip expected
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.
Antoine Pitrou [Fri, 29 Oct 2010 19:36:37 +0000 (19:36 +0000)]
Fix typo
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.
Martin v. Löwis [Fri, 29 Oct 2010 18:20:08 +0000 (18:20 +0000)]
Issue #9377: Use Unicode API for gethostname on Windows.
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.
Alexander Belopolsky [Fri, 29 Oct 2010 17:16:49 +0000 (17:16 +0000)]
Issue 7061: Explained 'gon'
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.
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
Antoine Pitrou [Fri, 29 Oct 2010 11:54:03 +0000 (11:54 +0000)]
Make check_warnings error messages more informative
Antoine Pitrou [Fri, 29 Oct 2010 11:53:34 +0000 (11:53 +0000)]
test___all__ ignores ResourceWarning as well
Antoine Pitrou [Fri, 29 Oct 2010 11:08:32 +0000 (11:08 +0000)]
Fix ResourceWarning in Lib/test/threaded_import_hangers.py
Victor Stinner [Fri, 29 Oct 2010 11:02:06 +0000 (11:02 +0000)]
test_tarfile: woops, remove +0.001 which was used to debug
Victor Stinner [Fri, 29 Oct 2010 10:59:08 +0000 (10:59 +0000)]
test_tarfile: dump mtime as hexadecimal on test_extractall failure
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.
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.
Georg Brandl [Fri, 29 Oct 2010 06:17:38 +0000 (06:17 +0000)]
(?:...) is a non-capturing, but still grouping construct.
Georg Brandl [Fri, 29 Oct 2010 05:36:28 +0000 (05:36 +0000)]
Fix markup error and update false positive entries from "make suspicious".
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.
Georg Brandl [Fri, 29 Oct 2010 05:24:24 +0000 (05:24 +0000)]
Re-add "debugger" label, it is used in pydoc-topics.
Georg Brandl [Fri, 29 Oct 2010 05:22:17 +0000 (05:22 +0000)]
send_bytes obviously needs bytes...
Georg Brandl [Fri, 29 Oct 2010 04:54:13 +0000 (04:54 +0000)]
#10222: fix for overzealous AIX compiler.
Benjamin Peterson [Fri, 29 Oct 2010 03:28:14 +0000 (03:28 +0000)]
decrement offset when it points to a newline (#10186 followup)
Victor Stinner [Fri, 29 Oct 2010 00:57:35 +0000 (00:57 +0000)]
What's New in Python 3.2: update Unicode section
Victor Stinner [Fri, 29 Oct 2010 00:38:58 +0000 (00:38 +0000)]
Issue #10210: os.get_exec_path() ignores BytesWarning warnings
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.
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.
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.
Alexander Belopolsky [Thu, 28 Oct 2010 20:13:52 +0000 (20:13 +0000)]
Fixed a typo in a comment.