]> granicus.if.org Git - python/log
python
14 years agoFix Issue9272 - Change CGIHTTPServer to give the child program a copy of os.environ
Senthil Kumaran [Sun, 3 Oct 2010 17:55:45 +0000 (17:55 +0000)]
Fix Issue9272 - Change CGIHTTPServer to give the child program a copy of os.environ

14 years agotypo in Arfrever name
Tarek Ziadé [Sun, 3 Oct 2010 14:45:06 +0000 (14:45 +0000)]
typo in Arfrever name

14 years agoFixed #8980: distutils.command.check was failing w/ docutils installed
Tarek Ziadé [Sun, 3 Oct 2010 14:18:09 +0000 (14:18 +0000)]
Fixed #8980: distutils.command.check was failing w/ docutils installed

14 years agotypo
Benjamin Peterson [Sun, 3 Oct 2010 02:13:39 +0000 (02:13 +0000)]
typo

14 years agoadd a test and a note about metaclasses now being abcs
Benjamin Peterson [Sat, 2 Oct 2010 17:55:47 +0000 (17:55 +0000)]
add a test and a note about metaclasses now being abcs

14 years ago#1050268: make parseaddr 'quote' the contents of quoted strings in addresses.
R. David Murray [Sat, 2 Oct 2010 15:58:26 +0000 (15:58 +0000)]
#1050268: make parseaddr 'quote' the contents of quoted strings in addresses.

Also made the doc string for email._parseaddr's 'quote' function more
accurate; I'd love to make the function match the old docstring instead,
but other code uses it according the existing semantics.

14 years agoMake the printing of sqlite version in verbose mode work with regrtest -w.
R. David Murray [Sat, 2 Oct 2010 13:29:13 +0000 (13:29 +0000)]
Make the printing of sqlite version in verbose mode work with regrtest -w.

14 years agoUpdate changelog for r85174
Victor Stinner [Sat, 2 Oct 2010 11:50:49 +0000 (11:50 +0000)]
Update changelog for r85174

14 years agoIssue #8670: Rename testcapi unicode test methods
Victor Stinner [Sat, 2 Oct 2010 11:49:31 +0000 (11:49 +0000)]
Issue #8670: Rename testcapi unicode test methods

 * test_aswidechar() => unicode_aswidechar()
 * test_aswidecharstring() => unicode_aswidecharstring()

14 years agoOops, revert unwanted _testcapi changes of r85174
Victor Stinner [Sat, 2 Oct 2010 11:46:20 +0000 (11:46 +0000)]
Oops, revert unwanted _testcapi changes of r85174

14 years agoIssue #8670: ctypes.c_wchar supports non-BMP characters with 32 bits wchar_t
Victor Stinner [Sat, 2 Oct 2010 11:25:35 +0000 (11:25 +0000)]
Issue #8670: ctypes.c_wchar supports non-BMP characters with 32 bits wchar_t

14 years agoIssue #8670: PyUnicode_AsWideChar() and PyUnicode_AsWideCharString() replace
Victor Stinner [Sat, 2 Oct 2010 11:11:27 +0000 (11:11 +0000)]
Issue #8670: PyUnicode_AsWideChar() and PyUnicode_AsWideCharString() replace
UTF-16 surrogate pairs by single non-BMP characters for 16 bits Py_UNICODE
and 32 bits wchar_t (eg. Linux in narrow build).

14 years agoIssue #8870: PyUnicode_AsWideCharString() doesn't count the trailing nul character
Victor Stinner [Sat, 2 Oct 2010 11:03:13 +0000 (11:03 +0000)]
Issue #8870: PyUnicode_AsWideCharString() doesn't count the trailing nul character

And write unit tests for PyUnicode_AsWideChar() and PyUnicode_AsWideCharString().

14 years agoUse proper variable name 'data' instead of 'str' in the send method.
Senthil Kumaran [Sat, 2 Oct 2010 10:33:13 +0000 (10:33 +0000)]
Use proper variable name 'data' instead of 'str' in the send method.

14 years agoFix - issue10010 .. index:: position in the docs.
Senthil Kumaran [Sat, 2 Oct 2010 03:16:04 +0000 (03:16 +0000)]
Fix - issue10010 .. index:: position in the docs.

14 years agotype.__abstractmethods__ should raise an AttributeError #10006
Benjamin Peterson [Sat, 2 Oct 2010 00:03:31 +0000 (00:03 +0000)]
type.__abstractmethods__ should raise an AttributeError #10006

14 years agoLower the tone of the warning about SSL certificate validation.
Amaury Forgeot d'Arc [Fri, 1 Oct 2010 23:42:24 +0000 (23:42 +0000)]
Lower the tone of the warning about SSL certificate validation.

14 years agoFix docstring typo.
R. David Murray [Fri, 1 Oct 2010 20:38:33 +0000 (20:38 +0000)]
Fix docstring typo.

14 years ago#10004: in Q encoded word ignore '=xx' when xx is not valid hex.
R. David Murray [Fri, 1 Oct 2010 15:40:20 +0000 (15:40 +0000)]
#10004: in Q encoded word ignore '=xx' when xx is not valid hex.

Bug report and fix by Thomas Guettler.

14 years agoFix #10003. Add SIGBREAK to the set of valid signals on Windows.
Brian Curtin [Fri, 1 Oct 2010 14:49:24 +0000 (14:49 +0000)]
Fix #10003. Add SIGBREAK to the set of valid signals on Windows.

This fixes a regression noticed by bzr, introduced by issue #9324.

14 years agoIssue #6608: time.asctime is now checking struct tm fields its input
Alexander Belopolsky [Fri, 1 Oct 2010 14:18:49 +0000 (14:18 +0000)]
Issue #6608: time.asctime is now checking struct tm fields its input
before passing it to the system asctime.  Patch by MunSic Jeong.

14 years agoCosmetic fix for PCBuild/readme.txt.
Hirokazu Yamamoto [Fri, 1 Oct 2010 10:40:49 +0000 (10:40 +0000)]
Cosmetic fix for PCBuild/readme.txt.

14 years agoFix weird markup that caused latex to fail.
Georg Brandl [Fri, 1 Oct 2010 05:38:10 +0000 (05:38 +0000)]
Fix weird markup that caused latex to fail.

14 years agoFix a couple spelling errors in comments and delete redundant __len__ def.
R. David Murray [Fri, 1 Oct 2010 02:08:02 +0000 (02:08 +0000)]
Fix a couple spelling errors in comments and delete redundant __len__ def.

14 years agoIssue1491 - BaseHTTPServer incorrectly implements response code 100
Senthil Kumaran [Thu, 30 Sep 2010 06:09:18 +0000 (06:09 +0000)]
Issue1491 - BaseHTTPServer incorrectly implements response code 100

14 years agoRemove an unreferenced variable. len is no longer needed.
Brian Curtin [Wed, 29 Sep 2010 19:09:33 +0000 (19:09 +0000)]
Remove an unreferenced variable. len is no longer needed.

14 years agoIssue #9599: Further accuracy tweaks to loghelper. For an integer n that's small...
Mark Dickinson [Wed, 29 Sep 2010 19:06:36 +0000 (19:06 +0000)]
Issue #9599:  Further accuracy tweaks to loghelper.  For an integer n that's small enough to be converted to a float without overflow, log(n) is now computed as log(float(n)), and similarly for log10.

14 years agoAdd testcases from bug report #9980.
Mark Dickinson [Wed, 29 Sep 2010 18:41:54 +0000 (18:41 +0000)]
Add testcases from bug report #9980.

14 years agoFix PyUnicode_AsWideCharString(): set *size if size is not NULL
Victor Stinner [Wed, 29 Sep 2010 17:55:12 +0000 (17:55 +0000)]
Fix PyUnicode_AsWideCharString(): set *size if size is not NULL

14 years agotest_imp: getfilesystemencoding() cannot be None anymore
Victor Stinner [Wed, 29 Sep 2010 16:59:46 +0000 (16:59 +0000)]
test_imp: getfilesystemencoding() cannot be None anymore

And the codec name is normalized.

14 years agoUse os.fsencode() to support surrogates
Victor Stinner [Wed, 29 Sep 2010 16:59:18 +0000 (16:59 +0000)]
Use os.fsencode() to support surrogates

14 years agoIssue #9630: Redecode filenames when setting the filesystem encoding
Victor Stinner [Wed, 29 Sep 2010 16:35:47 +0000 (16:35 +0000)]
Issue #9630: Redecode filenames when setting the filesystem encoding

Redecode the filenames of:

 - all modules: __file__ and __path__ attributes
 - all code objects: co_filename attribute
 - sys.path
 - sys.meta_path
 - sys.executable
 - sys.path_importer_cache (keys)

Keep weak references to all code objects until initfsencoding() is called, to
be able to redecode co_filename attribute of all code objects.

14 years agoFix NNTP when there's a ".netrc" file
Antoine Pitrou [Wed, 29 Sep 2010 16:19:50 +0000 (16:19 +0000)]
Fix NNTP when there's a ".netrc" file

14 years agoDisable the usenetrc option when testing nntplib
Antoine Pitrou [Wed, 29 Sep 2010 16:08:29 +0000 (16:08 +0000)]
Disable the usenetrc option when testing nntplib

14 years agoIssue #9360: Cleanup and improvements to the nntplib module. The API
Antoine Pitrou [Wed, 29 Sep 2010 15:03:40 +0000 (15:03 +0000)]
Issue #9360: Cleanup and improvements to the nntplib module.  The API
now conforms to the philosophy of bytes and unicode separation in Python 3.
A test suite has also been added.

14 years agoFix #9978. WINFUNCTYPE is from ctypes, not from ctypes.wintypes.
Brian Curtin [Wed, 29 Sep 2010 14:51:42 +0000 (14:51 +0000)]
Fix #9978. WINFUNCTYPE is from ctypes, not from ctypes.wintypes.
r85073 changed the importing in wintypes to not use *, so the previous
usage here became even more incorrect.

14 years agoIssue #9983: warn that urllib and httplib don't perform SSL certificate validation.
Antoine Pitrou [Wed, 29 Sep 2010 11:24:21 +0000 (11:24 +0000)]
Issue #9983: warn that urllib and httplib don't perform SSL certificate validation.

14 years agoIssue #9962: GzipFile now has the peek() method.
Antoine Pitrou [Wed, 29 Sep 2010 10:49:46 +0000 (10:49 +0000)]
Issue #9962: GzipFile now has the peek() method.

14 years agoIssue #9979: Use PyUnicode_AsWideCharString() in _ctypes module
Victor Stinner [Wed, 29 Sep 2010 10:37:16 +0000 (10:37 +0000)]
Issue #9979: Use PyUnicode_AsWideCharString() in _ctypes module

 * Convert unicode to wide character string before creating the PyCapsule
   object
 * Catch integer overflow
 * Avoid useless memset()
 * Prepare the support of surrogates

14 years agoIssue #9979: Use PyUnicode_AsWideCharString() in time.strftime()
Victor Stinner [Wed, 29 Sep 2010 10:34:19 +0000 (10:34 +0000)]
Issue #9979: Use PyUnicode_AsWideCharString() in time.strftime()

Allocate memory with PyMem_Alloc() instead of the PyBytes API. Prepare the
surrogates support.

14 years agoIssue #9979: Use PyUnicode_AsWideCharString() for _locale.strcoll()
Victor Stinner [Wed, 29 Sep 2010 10:30:43 +0000 (10:30 +0000)]
Issue #9979: Use PyUnicode_AsWideCharString() for _locale.strcoll()

It simplifies the code and prepare the surrogates support.

14 years agoIssue #9979: Use PyUnicode_AsWideCharString() in import.c
Victor Stinner [Wed, 29 Sep 2010 10:28:51 +0000 (10:28 +0000)]
Issue #9979: Use PyUnicode_AsWideCharString() in import.c

Don't truncate path if it is too long anymore, and allocate fewer memory (but
allocate it on the heap, not on the stack).

14 years agoIssue #9979: Create function PyUnicode_AsWideCharString().
Victor Stinner [Wed, 29 Sep 2010 10:25:54 +0000 (10:25 +0000)]
Issue #9979: Create function PyUnicode_AsWideCharString().

14 years agolinecache.updatecache(): don't the lines into the cache on IOError
Victor Stinner [Wed, 29 Sep 2010 01:30:45 +0000 (01:30 +0000)]
linecache.updatecache(): don't the lines into the cache on IOError

Use the same behaviour than Python 2.7.

14 years agolinecache.updatecache() returns an empty list on error
Victor Stinner [Wed, 29 Sep 2010 01:24:59 +0000 (01:24 +0000)]
linecache.updatecache() returns an empty list on error

lines variable was not set on IOError

14 years agoHave test_sqlite print version info when run in verbose mode.
R. David Murray [Wed, 29 Sep 2010 01:22:20 +0000 (01:22 +0000)]
Have test_sqlite print version info when run in verbose mode.

14 years ago#7110: have regrtest print test failures and tracebacks to stderr not stdout.
R. David Murray [Wed, 29 Sep 2010 01:08:05 +0000 (01:08 +0000)]
#7110: have regrtest print test failures and tracebacks to stderr not stdout.

Patch by Sandro Tosi.

14 years agoGive a dedicated page to memoryview objects, so that they can be part
Antoine Pitrou [Tue, 28 Sep 2010 23:59:51 +0000 (23:59 +0000)]
Give a dedicated page to memoryview objects, so that they can be part
of the concrete objects layer, while the buffer protocol is part of
the abstract objects layer.

14 years agoBuffers are not sequence objects (!). Put them in the abstract objects layers
Antoine Pitrou [Tue, 28 Sep 2010 23:39:41 +0000 (23:39 +0000)]
Buffers are not sequence objects (!). Put them in the abstract objects layers
instead.

14 years agoVarious improvements to the docs of the buffer API
Antoine Pitrou [Tue, 28 Sep 2010 23:04:04 +0000 (23:04 +0000)]
Various improvements to the docs of the buffer API

14 years ago#9628: fix runtests.sh -x option so more than one test can be excluded.
R. David Murray [Tue, 28 Sep 2010 22:25:18 +0000 (22:25 +0000)]
#9628: fix runtests.sh -x option so more than one test can be excluded.

14 years agoFix compilation under Windows
Antoine Pitrou [Tue, 28 Sep 2010 22:03:27 +0000 (22:03 +0000)]
Fix compilation under Windows

14 years agoDiscourage use of the old buffer API funcs
Antoine Pitrou [Tue, 28 Sep 2010 21:52:30 +0000 (21:52 +0000)]
Discourage use of the old buffer API funcs

14 years agoIssue #9090: When a socket with a timeout fails with EWOULDBLOCK or EAGAIN,
Antoine Pitrou [Tue, 28 Sep 2010 21:23:11 +0000 (21:23 +0000)]
Issue #9090: When a socket with a timeout fails with EWOULDBLOCK or EAGAIN,
retry the select() loop instead of bailing out.  This is because select()
can incorrectly report a socket as ready for reading (for example, if it
received some data with an invalid checksum).

14 years agoIssue #3612: Added new types to ctypes.wintypes. (CHAR and pointers)
Hirokazu Yamamoto [Tue, 28 Sep 2010 21:08:38 +0000 (21:08 +0000)]
Issue #3612: Added new types to ctypes.wintypes. (CHAR and pointers)

14 years agoUpdated PC/VC6 openssl build script. (for openssl-1.0.0a)
Hirokazu Yamamoto [Tue, 28 Sep 2010 18:36:04 +0000 (18:36 +0000)]
Updated PC/VC6 openssl build script. (for openssl-1.0.0a)

14 years agoNow perl path with spaces can be used.
Hirokazu Yamamoto [Tue, 28 Sep 2010 18:29:57 +0000 (18:29 +0000)]
Now perl path with spaces can be used.

14 years agoReverted to r70917.
Hirokazu Yamamoto [Tue, 28 Sep 2010 17:55:53 +0000 (17:55 +0000)]
Reverted to r70917.

14 years agoIssue #9970: improve C API documentation for memoryview objects
Antoine Pitrou [Tue, 28 Sep 2010 15:29:16 +0000 (15:29 +0000)]
Issue #9970: improve C API documentation for memoryview objects

14 years agoFix for issue #9568.
Ronald Oussoren [Tue, 28 Sep 2010 14:38:31 +0000 (14:38 +0000)]
Fix for issue #9568.

14 years agoAdd support for the ZSH shell to the "Update Shell Profile" script
Ronald Oussoren [Tue, 28 Sep 2010 13:57:58 +0000 (13:57 +0000)]
Add support for the ZSH shell to the "Update Shell Profile" script
on MacOSX.

Patch by Sylvain Mora, issue #9701.

14 years agoChanged order to see other test results. (Also temporary commit)
Hirokazu Yamamoto [Tue, 28 Sep 2010 09:46:48 +0000 (09:46 +0000)]
Changed order to see other test results. (Also temporary commit)

14 years agoRun test_ttk_guionly in verbose mode. (This commit is temporary)
Hirokazu Yamamoto [Tue, 28 Sep 2010 09:11:21 +0000 (09:11 +0000)]
Run test_ttk_guionly in verbose mode. (This commit is temporary)

14 years agoIssue #9599: Tweak loghelper algorithm to return slightly improved results for power...
Mark Dickinson [Tue, 28 Sep 2010 07:22:27 +0000 (07:22 +0000)]
Issue #9599:  Tweak loghelper algorithm to return slightly improved results for powers of 2.

14 years agoUpdated VS8.0 bz2.vcproj with PCBuild/vs9to8.py.
Hirokazu Yamamoto [Tue, 28 Sep 2010 07:03:40 +0000 (07:03 +0000)]
Updated VS8.0 bz2.vcproj with PCBuild/vs9to8.py.

14 years agoSince __import__ is not designed for general use, have its docstring point
Brett Cannon [Mon, 27 Sep 2010 21:08:38 +0000 (21:08 +0000)]
Since __import__ is not designed for general use, have its docstring point
people towards importlib.import_module().

Closes issue #7397.

14 years agoImplement #8521. Added named argument handling to winreg's CreateKeyEx,
Brian Curtin [Mon, 27 Sep 2010 17:56:36 +0000 (17:56 +0000)]
Implement #8521. Added named argument handling to winreg's CreateKeyEx,
DeleteKeyEx, and OpenKeyEx.

Note that CKE and DKE are new functions for 3.2 so I didn't give them a
versionchanged because of the existing versionadded. OpenKeyEx already
existed so it gets a versionchanged tag.

14 years agoIssue #9950: Fix socket.sendall() crash or misbehaviour when a signal is
Antoine Pitrou [Mon, 27 Sep 2010 17:52:25 +0000 (17:52 +0000)]
Issue #9950: Fix socket.sendall() crash or misbehaviour when a signal is
received.  Now sendall() properly calls signal handlers if necessary,
and retries sending if these returned successfully, including on sockets
with a timeout.

14 years agoIssue 9941: Minor code cleanup before implementing the context manager feature:
Alexander Belopolsky [Mon, 27 Sep 2010 15:49:20 +0000 (15:49 +0000)]
Issue 9941: Minor code cleanup before implementing the context manager feature:
  - Eliminated code repetition between run and runctx;
  - Removed redundant calls to dict.key;
  - Removed unused "blabbed" attribute;
  - Simplified the loop in  write_results_file().

14 years agologging: Updated library configuration documentation.
Vinay Sajip [Mon, 27 Sep 2010 13:53:47 +0000 (13:53 +0000)]
logging: Updated library configuration documentation.

14 years agoissue 9910
Kristján Valur Jónsson [Mon, 27 Sep 2010 05:32:54 +0000 (05:32 +0000)]
issue 9910
Add a Py_SetPath api to override magic path computations when starting up python.

14 years agoFix Issue1595365 - Adding the req.headers after the un-redirect headers have
Senthil Kumaran [Mon, 27 Sep 2010 01:26:03 +0000 (01:26 +0000)]
Fix Issue1595365 - Adding the req.headers after the un-redirect headers have
been added. This helps in accidental overwritting of User-Agent header to
default value. To preserve the old behavior, only headers not in unredirected
headers will be updated.

14 years agoIssue #8445: try to fix some buildbot failures on test_ttk_guionly.
Antoine Pitrou [Sun, 26 Sep 2010 16:36:33 +0000 (16:36 +0000)]
Issue #8445: try to fix some buildbot failures on test_ttk_guionly.
Patch by Guilherme.

14 years agologging: NullHandler optimisation.
Vinay Sajip [Sun, 26 Sep 2010 11:04:10 +0000 (11:04 +0000)]
logging: NullHandler optimisation.

14 years agoFix typo.
Antoine Pitrou [Sat, 25 Sep 2010 22:12:00 +0000 (22:12 +0000)]
Fix typo.

14 years agoIssue #9947: logging: Fixed locking bug in stopListening.
Vinay Sajip [Sat, 25 Sep 2010 17:48:25 +0000 (17:48 +0000)]
Issue #9947: logging: Fixed locking bug in stopListening.

14 years agoIssue #9945: logging: Fixed locking bugs in addHandler/removeHandler.
Vinay Sajip [Sat, 25 Sep 2010 17:42:36 +0000 (17:42 +0000)]
Issue #9945: logging: Fixed locking bugs in addHandler/removeHandler.

14 years ago#9562: slight clarification.
Georg Brandl [Sat, 25 Sep 2010 16:56:36 +0000 (16:56 +0000)]
#9562: slight clarification.

14 years ago#9944: fix typo.
Georg Brandl [Sat, 25 Sep 2010 13:30:03 +0000 (13:30 +0000)]
#9944: fix typo.

14 years agorevert r85003, poorly considered; breaks tests
Benjamin Peterson [Sat, 25 Sep 2010 03:25:42 +0000 (03:25 +0000)]
revert r85003, poorly considered; breaks tests

14 years agodon't count keyword arguments as positional #9943
Benjamin Peterson [Sat, 25 Sep 2010 03:14:33 +0000 (03:14 +0000)]
don't count keyword arguments as positional #9943

14 years agoThis should fix buildbot failure introduced by r84994
Alexander Belopolsky [Fri, 24 Sep 2010 22:04:22 +0000 (22:04 +0000)]
This should fix buildbot failure introduced by r84994

14 years agoFix a line that got hacked up by r82659.
Brian Curtin [Fri, 24 Sep 2010 21:04:05 +0000 (21:04 +0000)]
Fix a line that got hacked up by r82659.

14 years agoMake _kill_process more robust under Windows too (see issue #8432)
Antoine Pitrou [Fri, 24 Sep 2010 18:57:01 +0000 (18:57 +0000)]
Make _kill_process more robust under Windows too (see issue #8432)

14 years agoIssue #9936: Fixed executable lines' search in the trace module.
Alexander Belopolsky [Fri, 24 Sep 2010 18:03:12 +0000 (18:03 +0000)]
Issue #9936: Fixed executable lines' search in the trace module.

14 years agoIssue #9552: Avoid unnecessary rebuild of OpenSSL. (Windows)
Hirokazu Yamamoto [Fri, 24 Sep 2010 16:36:34 +0000 (16:36 +0000)]
Issue #9552: Avoid unnecessary rebuild of OpenSSL. (Windows)

14 years agoFix #9790 again. Rather than handle NotImplementedError at runtime as
Brian Curtin [Fri, 24 Sep 2010 13:56:34 +0000 (13:56 +0000)]
Fix #9790 again. Rather than handle NotImplementedError at runtime as
before, only attempt the import where nt._getfinalpathname could actually
work, i.e., Windows Vista and beyond.

14 years agoLoginTests fails on a number of buildbots with different errors. Skip
Brian Curtin [Fri, 24 Sep 2010 13:43:43 +0000 (13:43 +0000)]
LoginTests fails on a number of buildbots with different errors. Skip
it for now until a buildbot-safe solution comes up.

14 years agoFix a typo. full->final
Brian Curtin [Fri, 24 Sep 2010 00:03:39 +0000 (00:03 +0000)]
Fix a typo. full->final

14 years agoFix #9790: Rework the imports necessary for ntpath.samefile and
Brian Curtin [Thu, 23 Sep 2010 20:38:14 +0000 (20:38 +0000)]
Fix #9790: Rework the imports necessary for ntpath.samefile and
ntpath.sameopenfile.

14 years agoUpdated SysLogHandler documentation.
Vinay Sajip [Thu, 23 Sep 2010 20:31:24 +0000 (20:31 +0000)]
Updated SysLogHandler documentation.

14 years agoFurther tarfile / test_tarfile cleanup
Antoine Pitrou [Thu, 23 Sep 2010 20:15:14 +0000 (20:15 +0000)]
Further tarfile / test_tarfile cleanup

14 years agoIssue #9930: Remove an unnecessary type check in wrap_binaryfunc_r;
Mark Dickinson [Thu, 23 Sep 2010 20:11:19 +0000 (20:11 +0000)]
Issue #9930: Remove an unnecessary type check in wrap_binaryfunc_r;
this was causing reversed method calls like float.__radd__(3.0, 1) to
return NotImplemented instead of the expected numeric value.

14 years ago#9808. Implement os.getlogin for Windows, completed by Jon Anglin.
Brian Curtin [Thu, 23 Sep 2010 20:04:14 +0000 (20:04 +0000)]
#9808. Implement os.getlogin for Windows, completed by Jon Anglin.

The test is semi-dumb, it just makes sure something comes back since we
don't have a solid source to validate the returned login. We can't be 100%
sure that the USERNAME env var will always match what os.getlogin() returns,
so we don't make any specific assertion there.

14 years agoIssue #9928: Properly initialize the types exported by the bz2 module.
Antoine Pitrou [Thu, 23 Sep 2010 19:51:39 +0000 (19:51 +0000)]
Issue #9928: Properly initialize the types exported by the bz2 module.

14 years agoTry harder to fix test_tarfile under Windows buildbots
Antoine Pitrou [Thu, 23 Sep 2010 19:39:35 +0000 (19:39 +0000)]
Try harder to fix test_tarfile under Windows buildbots

14 years agoTry to fix test_tarfile issues on Windows buildbots by closing file
Antoine Pitrou [Thu, 23 Sep 2010 18:36:46 +0000 (18:36 +0000)]
Try to fix test_tarfile issues on Windows buildbots by closing file
objects explicitly instead of letting them linger on.

14 years agoSmall fixes in the gzip docs
Antoine Pitrou [Thu, 23 Sep 2010 16:45:17 +0000 (16:45 +0000)]
Small fixes in the gzip docs

14 years agoIssue #1675951: Allow GzipFile to work with unseekable file objects.
Antoine Pitrou [Thu, 23 Sep 2010 16:22:51 +0000 (16:22 +0000)]
Issue #1675951: Allow GzipFile to work with unseekable file objects.
Patch by Florian Festi.

14 years agoSkip estLoadWithUNC when UNC is not available.
Hirokazu Yamamoto [Thu, 23 Sep 2010 15:28:35 +0000 (15:28 +0000)]
Skip estLoadWithUNC when UNC is not available.