]> granicus.if.org Git - python/log
python
14 years agoFix my previous commit (r88702): initialize size_tflag in parse_format_flags()
Victor Stinner [Wed, 2 Mar 2011 00:01:53 +0000 (00:01 +0000)]
Fix my previous commit (r88702): initialize size_tflag in parse_format_flags()

14 years agoIssue #10829: Refactor PyUnicode_FromFormat()
Victor Stinner [Tue, 1 Mar 2011 23:44:09 +0000 (23:44 +0000)]
Issue #10829: Refactor PyUnicode_FromFormat()

 * Use the same function to parse the format string in the 3 steps
 * Fix crashs on invalid format strings

14 years agoIssue #10911: Add tests on CGI with non-ASCII characters
Victor Stinner [Tue, 1 Mar 2011 23:08:36 +0000 (23:08 +0000)]
Issue #10911: Add tests on CGI with non-ASCII characters

Patch written by Pierre Quentel

14 years agoFollowup to issue #11140 and r88682: also patch _dummy_thread.
Antoine Pitrou [Tue, 1 Mar 2011 23:05:42 +0000 (23:05 +0000)]
Followup to issue #11140 and r88682: also patch _dummy_thread.
Patch by Aymeric Augustin.

14 years agoIssue #11246: Fix PyUnicode_FromFormat("%V")
Victor Stinner [Tue, 1 Mar 2011 22:46:52 +0000 (22:46 +0000)]
Issue #11246: Fix PyUnicode_FromFormat("%V")

Decode the byte string from UTF-8 (with replace error handler) instead of
ISO-8859-1 (in strict mode). Patch written by Ray Allen.

14 years agoRemove outdated pointer to optparse (fixes #11360).
Éric Araujo [Tue, 1 Mar 2011 18:26:56 +0000 (18:26 +0000)]
Remove outdated pointer to optparse (fixes #11360).

The doc already points to argparse.

14 years agoEndly, fix UnboundLocalError in telnetlib
Antoine Pitrou [Tue, 1 Mar 2011 00:41:10 +0000 (00:41 +0000)]
Endly, fix UnboundLocalError in telnetlib

14 years agoRecommend inspecting the errno attribute of socket.error objects,
Antoine Pitrou [Mon, 28 Feb 2011 22:38:07 +0000 (22:38 +0000)]
Recommend inspecting the errno attribute of socket.error objects,
and improve wording.

14 years agoIssue #10866: Add socket.sethostname(). Initial patch by Ross Lagerwall.
Antoine Pitrou [Mon, 28 Feb 2011 22:25:22 +0000 (22:25 +0000)]
Issue #10866: Add socket.sethostname().  Initial patch by Ross Lagerwall.

14 years agoAdd credit for r88682.
Antoine Pitrou [Mon, 28 Feb 2011 22:06:48 +0000 (22:06 +0000)]
Add credit for r88682.

14 years agoNo need to put this at top
Antoine Pitrou [Mon, 28 Feb 2011 22:04:51 +0000 (22:04 +0000)]
No need to put this at top

14 years agoIssue #11140: Lock.release() now raises a RuntimeError when attempting
Antoine Pitrou [Mon, 28 Feb 2011 22:03:34 +0000 (22:03 +0000)]
Issue #11140: Lock.release() now raises a RuntimeError when attempting
to release an unacquired lock, as claimed in the threading documentation.
The _thread.error exception is now an alias of RuntimeError.

14 years agoIssue 11348: skip os.setpriority() test if current nice level is >= 19.
Giampaolo Rodolà [Mon, 28 Feb 2011 19:27:16 +0000 (19:27 +0000)]
Issue 11348: skip os.setpriority() test if current nice level is >= 19.

14 years agoFix issue 8594: adds a source_address parameter to ftplib module.
Giampaolo Rodolà [Mon, 28 Feb 2011 19:19:51 +0000 (19:19 +0000)]
Fix issue 8594: adds a source_address parameter to ftplib module.

14 years agoFollow up to r88664: non-blocking connect-ex() can return EWOULDBLOCK under Windows
Antoine Pitrou [Sun, 27 Feb 2011 15:44:12 +0000 (15:44 +0000)]
Follow up to r88664: non-blocking connect-ex() can return EWOULDBLOCK under Windows

14 years agomake this a link #11345
Benjamin Peterson [Sun, 27 Feb 2011 15:06:44 +0000 (15:06 +0000)]
make this a link #11345

14 years agoIssue #11326: Add the missing connect_ex() implementation for SSL sockets,
Antoine Pitrou [Sat, 26 Feb 2011 23:24:06 +0000 (23:24 +0000)]
Issue #11326: Add the missing connect_ex() implementation for SSL sockets,
and make it work for non-blocking connects.

14 years agoMerged revisions 88661 via svnmerge from
Benjamin Peterson [Sat, 26 Feb 2011 22:12:10 +0000 (22:12 +0000)]
Merged revisions 88661 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r88661 | benjamin.peterson | 2011-02-26 16:06:24 -0600 (Sat, 26 Feb 2011) | 6 lines

  fix refactoring on formfeed characters #11250

  This is because text.splitlines() is not the same as
  list(StringIO.StringIO(text)).
........

14 years agorevert accidental formatting change
Benjamin Peterson [Sat, 26 Feb 2011 21:35:16 +0000 (21:35 +0000)]
revert accidental formatting change

14 years agothis isn't true anymore
Benjamin Peterson [Sat, 26 Feb 2011 21:32:16 +0000 (21:32 +0000)]
this isn't true anymore

14 years agoMake sendfile tests more robust
Antoine Pitrou [Sat, 26 Feb 2011 17:52:50 +0000 (17:52 +0000)]
Make sendfile tests more robust

14 years agoIssue #11330: Updated tests for correct asctime handling.
Vinay Sajip [Sat, 26 Feb 2011 16:06:02 +0000 (16:06 +0000)]
Issue #11330: Updated tests for correct asctime handling.

14 years agoIssue #11330: Added regression test.
Vinay Sajip [Sat, 26 Feb 2011 16:00:04 +0000 (16:00 +0000)]
Issue #11330: Added regression test.

14 years agoIssue #9931: Fix hangs in GUI tests under Windows in certain conditions.
Antoine Pitrou [Sat, 26 Feb 2011 15:58:05 +0000 (15:58 +0000)]
Issue #9931: Fix hangs in GUI tests under Windows in certain conditions.
Patch by Hirokazu Yamamoto.

14 years agoReplace links to the old dev doc with links to the new devguide.
Éric Araujo [Sat, 26 Feb 2011 14:57:23 +0000 (14:57 +0000)]
Replace links to the old dev doc with links to the new devguide.

14 years agoIssue #11323: fix sendfile tests under 64-bit Solaris.
Antoine Pitrou [Sat, 26 Feb 2011 14:29:24 +0000 (14:29 +0000)]
Issue #11323: fix sendfile tests under 64-bit Solaris.

14 years agoRemoved typo.
Vinay Sajip [Sat, 26 Feb 2011 14:28:36 +0000 (14:28 +0000)]
Removed typo.

14 years agoIssue #11331: fixed documentation in logging cookbook.
Vinay Sajip [Sat, 26 Feb 2011 14:24:29 +0000 (14:24 +0000)]
Issue #11331: fixed documentation in logging cookbook.

14 years agoIssue #11330: asctime format bug fixed.
Vinay Sajip [Sat, 26 Feb 2011 14:15:48 +0000 (14:15 +0000)]
Issue #11330: asctime format bug fixed.

14 years agoCheck error return from _parse_off_t(), and remove cruft from the 2->3 transition.
Antoine Pitrou [Sat, 26 Feb 2011 13:38:35 +0000 (13:38 +0000)]
Check error return from _parse_off_t(), and remove cruft from the 2->3 transition.

14 years agoRevert r88639 (the optimization changes behaviour and breaks buildbots)
Antoine Pitrou [Sat, 26 Feb 2011 09:37:45 +0000 (09:37 +0000)]
Revert r88639 (the optimization changes behaviour and breaks buildbots)

14 years agoIssue #11258: Speed up ctypes.util.find_library() under Linux a lot. Patch
Antoine Pitrou [Sat, 26 Feb 2011 08:45:20 +0000 (08:45 +0000)]
Issue #11258: Speed up ctypes.util.find_library() under Linux a lot.  Patch
by Jonas H.

14 years agotest_logging: Changed TimedRotatingFileHandler tests to use UTC time rather than...
Vinay Sajip [Sat, 26 Feb 2011 07:18:22 +0000 (07:18 +0000)]
test_logging: Changed TimedRotatingFileHandler tests to use UTC time rather than local time.

14 years agoAdd __bool__ method. Add tests. Fix-up broken test.
Raymond Hettinger [Sat, 26 Feb 2011 06:53:58 +0000 (06:53 +0000)]
Add __bool__ method. Add tests. Fix-up broken test.

14 years agotest_logging: diagnostic code changes.
Vinay Sajip [Sat, 26 Feb 2011 06:37:04 +0000 (06:37 +0000)]
test_logging: diagnostic code changes.

14 years agoFix Issue10228 - Refleak run of test_dbm fails when several dbm modules are available...
Senthil Kumaran [Sat, 26 Feb 2011 03:44:03 +0000 (03:44 +0000)]
Fix Issue10228 - Refleak run of test_dbm fails when several dbm modules are available (Patch by Ray.Allen)

14 years agoMake Py3.x style "import builtins"
Raymond Hettinger [Sat, 26 Feb 2011 02:48:44 +0000 (02:48 +0000)]
Make Py3.x style "import builtins"

14 years agoPEP 7 conformance changes (whitespace only).
Alexander Belopolsky [Sat, 26 Feb 2011 01:02:56 +0000 (01:02 +0000)]
PEP 7 conformance changes (whitespace only).

14 years agoIssue #11297: Add collections.ChainMap()
Raymond Hettinger [Sat, 26 Feb 2011 01:02:51 +0000 (01:02 +0000)]
Issue #11297: Add collections.ChainMap()

14 years agoFix AttributeError.
Antoine Pitrou [Sat, 26 Feb 2011 00:22:25 +0000 (00:22 +0000)]
Fix AttributeError.

14 years agoFix compilation warning in Modules/posixmodule.c.
Antoine Pitrou [Sat, 26 Feb 2011 00:22:09 +0000 (00:22 +0000)]
Fix compilation warning in Modules/posixmodule.c.

14 years agoIssue #10755: Add the posix.fdlistdir() function. Patch by Ross Lagerwall.
Antoine Pitrou [Fri, 25 Feb 2011 23:41:16 +0000 (23:41 +0000)]
Issue #10755: Add the posix.fdlistdir() function.  Patch by Ross Lagerwall.

14 years agoIssue #4761: Add the *at() family of functions (openat(), etc.) to the posix
Antoine Pitrou [Fri, 25 Feb 2011 23:25:17 +0000 (23:25 +0000)]
Issue #4761: Add the *at() family of functions (openat(), etc.) to the posix
module.  Patch by Ross Lagerwall.

14 years agoIssue #7322: Trying to read from a socket's file-like object after a timeout
Antoine Pitrou [Fri, 25 Feb 2011 23:07:44 +0000 (23:07 +0000)]
Issue #7322: Trying to read from a socket's file-like object after a timeout
occurred now raises an error instead of silently losing data.
Patch by Ross Lagerwall.

14 years agotest_logging: Added more diagnostics for buildbot failures.
Vinay Sajip [Fri, 25 Feb 2011 22:45:25 +0000 (22:45 +0000)]
test_logging: Added more diagnostics for buildbot failures.

14 years agoIssue 11291: poplib suppresses errors on QUIT.
Giampaolo Rodolà [Fri, 25 Feb 2011 22:28:24 +0000 (22:28 +0000)]
Issue 11291: poplib suppresses errors on QUIT.

14 years agoIssue 11177: asyncore's create_socket() arguments can now be omitted.
Giampaolo Rodolà [Fri, 25 Feb 2011 22:21:22 +0000 (22:21 +0000)]
Issue 11177: asyncore's create_socket() arguments can now be omitted.

14 years agoIssue #6064: Add a `daemon` keyword argument to the threading.Thread
Antoine Pitrou [Fri, 25 Feb 2011 22:07:43 +0000 (22:07 +0000)]
Issue #6064: Add a `daemon` keyword argument to the threading.Thread
and multiprocessing.Process constructors in order to override the
default behaviour of inheriting the daemonic property from the current
thread/process.

14 years ago(issue 11323) - attempt to fix solaris buildbot failure for os.sendfile(). Also fixed...
Giampaolo Rodolà [Fri, 25 Feb 2011 21:46:01 +0000 (21:46 +0000)]
(issue 11323) - attempt to fix solaris buildbot failure for os.sendfile(). Also fixed an AttributeError in get/set priority tests.

14 years agoAdd missing read() in distutils doc.
Éric Araujo [Fri, 25 Feb 2011 21:40:34 +0000 (21:40 +0000)]
Add missing read() in distutils doc.

14 years agoIssue #10956: Buffered I/O classes retry reading or writing after a signal
Antoine Pitrou [Fri, 25 Feb 2011 21:24:11 +0000 (21:24 +0000)]
Issue #10956: Buffered I/O classes retry reading or writing after a signal
has arrived and the handler returned successfully.

14 years agoUpdate Misc/NEWS to include os.getpriority() and os.setpriority() addition.
Giampaolo Rodolà [Fri, 25 Feb 2011 21:00:10 +0000 (21:00 +0000)]
Update Misc/NEWS to include os.getpriority() and os.setpriority() addition.

14 years agoIssue 10784: adds os.getpriority() and os.setpriority() functions.
Giampaolo Rodolà [Fri, 25 Feb 2011 20:57:54 +0000 (20:57 +0000)]
Issue 10784: adds os.getpriority() and os.setpriority() functions.

14 years agoIssue #11114: Fix catastrophic performance of tell() on text files (up
Antoine Pitrou [Fri, 25 Feb 2011 20:27:33 +0000 (20:27 +0000)]
Issue #11114: Fix catastrophic performance of tell() on text files (up
to 1000x faster in some cases).  It is still one to two order of magnitudes
slower than binary tell().

14 years ago(issue 11214) - fix asyncore.strerror test failure on AIX
Giampaolo Rodolà [Fri, 25 Feb 2011 20:05:48 +0000 (20:05 +0000)]
(issue 11214) - fix asyncore.strerror test failure on AIX

14 years agoSkip os.sendfile() test if threading module is not available.
Giampaolo Rodolà [Fri, 25 Feb 2011 20:01:05 +0000 (20:01 +0000)]
Skip os.sendfile() test if threading module is not available.

14 years agoIssue #11303: Added shortcuts for utf8 and latin1 encodings.
Alexander Belopolsky [Fri, 25 Feb 2011 19:19:57 +0000 (19:19 +0000)]
Issue #11303: Added shortcuts for utf8 and latin1 encodings.
Documented the list of optimized encodings as CPython implementation
detail.

14 years agologging: enabled test which was intermittently failing on buildbots.
Vinay Sajip [Fri, 25 Feb 2011 17:02:43 +0000 (17:02 +0000)]
logging: enabled test which was intermittently failing on buildbots.

14 years agoDocumented QueueListener change.
Vinay Sajip [Fri, 25 Feb 2011 16:05:26 +0000 (16:05 +0000)]
Documented QueueListener change.

14 years agoImproved QueueListener implementation - queue sentinel addition made extensible.
Vinay Sajip [Fri, 25 Feb 2011 15:56:55 +0000 (15:56 +0000)]
Improved QueueListener implementation - queue sentinel addition made extensible.

14 years agoNormalize the encoding names for Latin-1 and UTF-8 to
Marc-André Lemburg [Fri, 25 Feb 2011 15:42:01 +0000 (15:42 +0000)]
Normalize the encoding names for Latin-1 and UTF-8 to
'latin-1' and 'utf-8'.

These are optimized in the Python Unicode implementation
to result in more direct processing, bypassing the codec
registry.

Also see issue11303.

14 years agoRename internal helper function and make it static.
Georg Brandl [Fri, 25 Feb 2011 15:23:18 +0000 (15:23 +0000)]
Rename internal helper function and make it static.

14 years agoRegenerate configure after r88580.
Georg Brandl [Fri, 25 Feb 2011 15:21:47 +0000 (15:21 +0000)]
Regenerate configure after r88580.

14 years ago(issue 11232) - fix asyncore documentation issue (patch by Sandro Tosi)
Giampaolo Rodolà [Fri, 25 Feb 2011 14:50:57 +0000 (14:50 +0000)]
(issue 11232) - fix asyncore documentation issue (patch by Sandro Tosi)

14 years agoIssue 10882: add os.sendfile(). (patch provided by Ross Lagerwall)
Giampaolo Rodolà [Fri, 25 Feb 2011 14:39:16 +0000 (14:39 +0000)]
Issue 10882: add os.sendfile(). (patch provided by Ross Lagerwall)

14 years agoFix .hgeol
Antoine Pitrou [Fri, 25 Feb 2011 14:32:24 +0000 (14:32 +0000)]
Fix .hgeol

14 years agoMore eol-style's
Antoine Pitrou [Fri, 25 Feb 2011 14:31:09 +0000 (14:31 +0000)]
More eol-style's

14 years agoMake svn:eol-style's more consistent
Antoine Pitrou [Fri, 25 Feb 2011 14:19:48 +0000 (14:19 +0000)]
Make svn:eol-style's more consistent

14 years agorewrite with assertIs
Benjamin Peterson [Fri, 25 Feb 2011 14:05:42 +0000 (14:05 +0000)]
rewrite with assertIs

14 years agorun autoconf
Benjamin Peterson [Fri, 25 Feb 2011 14:01:05 +0000 (14:01 +0000)]
run autoconf

14 years agoAdd 3.3 whatsnew to index.
Georg Brandl [Fri, 25 Feb 2011 11:28:22 +0000 (11:28 +0000)]
Add 3.3 whatsnew to index.

14 years agoRemove unused m4 define.
Georg Brandl [Fri, 25 Feb 2011 11:03:15 +0000 (11:03 +0000)]
Remove unused m4 define.

14 years agoRemoved fcmp and FUZZ from test.support, following the discussion on python-dev:
Eli Bendersky [Fri, 25 Feb 2011 10:14:17 +0000 (10:14 +0000)]
Removed fcmp and FUZZ from test.support, following the discussion on python-dev:
http://mail.python.org/pipermail/python-dev/2011-January/107735.html

14 years agoIssue #10516: adding list.clear() and list.copy() methods
Eli Bendersky [Fri, 25 Feb 2011 05:47:53 +0000 (05:47 +0000)]
Issue #10516: adding list.clear() and list.copy() methods

14 years agoAdds Python 3.3 what's new document.
Giampaolo Rodolà [Thu, 24 Feb 2011 20:59:48 +0000 (20:59 +0000)]
Adds Python 3.3 what's new document.

14 years agoIssue #11286: Raise a ValueError from calling PyMemoryView_FromBuffer with
Antoine Pitrou [Thu, 24 Feb 2011 20:50:49 +0000 (20:50 +0000)]
Issue #11286: Raise a ValueError from calling PyMemoryView_FromBuffer with
a buffer struct having a NULL data pointer.

14 years agoIssue #11286: Fixed unpickling of empty 2.x strings.
Alexander Belopolsky [Thu, 24 Feb 2011 19:40:09 +0000 (19:40 +0000)]
Issue #11286: Fixed unpickling of empty 2.x strings.

14 years agoAllow usage of SomeABC.register as a class decorator. Patch by Edoardo Spadolini...
Éric Araujo [Thu, 24 Feb 2011 18:03:10 +0000 (18:03 +0000)]
Allow usage of SomeABC.register as a class decorator.  Patch by Edoardo Spadolini (#10868).

14 years agorewrite
Benjamin Peterson [Thu, 24 Feb 2011 02:53:05 +0000 (02:53 +0000)]
rewrite

14 years agothis seems to be pointlessly nested
Benjamin Peterson [Thu, 24 Feb 2011 02:46:00 +0000 (02:46 +0000)]
this seems to be pointlessly nested

14 years agoMerged revisions 88535 via svnmerge from
Benjamin Peterson [Thu, 24 Feb 2011 01:41:46 +0000 (01:41 +0000)]
Merged revisions 88535 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r88535 | brett.cannon | 2011-02-23 13:46:46 -0600 (Wed, 23 Feb 2011) | 1 line

  Add lib2to3.__main__ for easy testing from the console.
........

14 years agoIssue #11304: Input/output tutorial - PI is rounded not truncated.
Raymond Hettinger [Thu, 24 Feb 2011 00:08:13 +0000 (00:08 +0000)]
Issue #11304: Input/output tutorial - PI is rounded not truncated.

14 years agoRevert r88503 as Benjamin's request.
Brett Cannon [Wed, 23 Feb 2011 18:48:52 +0000 (18:48 +0000)]
Revert r88503 as Benjamin's request.

14 years agoIssue #3080: Fix test_reprlib on Windows
Victor Stinner [Wed, 23 Feb 2011 14:14:48 +0000 (14:14 +0000)]
Issue #3080: Fix test_reprlib on Windows

Fix the test for last module changes (r88520).

14 years agoIssue #11272: Fix input() and sys.stdin for Windows newline
Victor Stinner [Wed, 23 Feb 2011 12:07:37 +0000 (12:07 +0000)]
Issue #11272: Fix input() and sys.stdin for Windows newline

On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses
universal newline (replace '\r\n' by '\n').

14 years agoIssue #11224: Improved sparse file read support (r85916) introduced a
Lars Gustäbel [Wed, 23 Feb 2011 11:42:22 +0000 (11:42 +0000)]
Issue #11224: Improved sparse file read support (r85916) introduced a
regression in _FileInFile which is used in file-like objects returned
by TarFile.extractfile(). The inefficient design of the
_FileInFile.read() method causes various dramatic side-effects and
errors:

  - The data segment of a file member is read completely into memory
    every(!) time a small block is accessed. This is not only slow
    but may cause unexpected MemoryErrors with very large files.
  - Reading members from compressed tar archives is even slower
    because of the excessive backwards seeking which is done when the
    same data segment is read over and over again.
  - As a backwards seek on a TarFile opened in stream mode is not
    possible, using extractfile() fails with a StreamError.

14 years agodynload_dl.c: replace tabs by spaces
Victor Stinner [Wed, 23 Feb 2011 11:29:28 +0000 (11:29 +0000)]
dynload_dl.c: replace tabs by spaces

14 years agoAdd tests for the _ChainMap helper class.
Raymond Hettinger [Wed, 23 Feb 2011 07:56:53 +0000 (07:56 +0000)]
Add tests for the _ChainMap helper class.

14 years agoIndent "versionadded" properly.
Georg Brandl [Wed, 23 Feb 2011 07:31:24 +0000 (07:31 +0000)]
Indent "versionadded" properly.

14 years agoAdd new subdirectory to LIBSUBDIRS.
Georg Brandl [Wed, 23 Feb 2011 07:30:12 +0000 (07:30 +0000)]
Add new subdirectory to LIBSUBDIRS.

14 years agoFix imports from collections.abc
Raymond Hettinger [Wed, 23 Feb 2011 00:46:28 +0000 (00:46 +0000)]
Fix imports from collections.abc

14 years agoIssue #3080: Add PyModule_GetNameObject()
Victor Stinner [Wed, 23 Feb 2011 00:21:43 +0000 (00:21 +0000)]
Issue #3080: Add PyModule_GetNameObject()

repr(module) uses %R to format module name and filenames, instead of '%s' and
'%U', so surrogates from undecodable bytes in a filename (PEP 383) are escaped.

14 years agoIssue #3080: Mark _PyImport_FindBuiltin() argument as constant
Victor Stinner [Wed, 23 Feb 2011 00:02:00 +0000 (00:02 +0000)]
Issue #3080: Mark _PyImport_FindBuiltin() argument as constant

And as a consequence, mark also name argument of
_PyImport_FindExtensionUnicode() constant too. But I plan to change this
argument type to PyObject* later.

14 years agoIssue #3080: document encoding used by import functions
Victor Stinner [Tue, 22 Feb 2011 23:38:34 +0000 (23:38 +0000)]
Issue #3080: document encoding used by import functions

14 years agoIssue #3080: Remove unused argument of _PyImport_GetDynLoadFunc()
Victor Stinner [Tue, 22 Feb 2011 23:16:19 +0000 (23:16 +0000)]
Issue #3080: Remove unused argument of _PyImport_GetDynLoadFunc()

The first argument, fqname, was not used.

14 years agoIssue #3080: Mark PyWin_FindRegisteredModule() as private
Victor Stinner [Tue, 22 Feb 2011 23:12:28 +0000 (23:12 +0000)]
Issue #3080: Mark PyWin_FindRegisteredModule() as private

This function was not declared in Python public API (in any .h file) and not
documented. Mark it as private to prepare a change of its API.

14 years agoA crypt algorithm may not be available by returning None.
Brett Cannon [Tue, 22 Feb 2011 21:55:51 +0000 (21:55 +0000)]
A crypt algorithm may not be available by returning None.

14 years agoMake Lib/crypt.py meet PEP 8 standards. This also led to a tweak in the new API
Brett Cannon [Tue, 22 Feb 2011 21:48:06 +0000 (21:48 +0000)]
Make Lib/crypt.py meet PEP 8 standards. This also led to a tweak in the new API
by making methods() into a module attribute as it is statically calculated.

14 years agoIssue #11277: finally fix Snow Leopard crash following r88460.
Antoine Pitrou [Tue, 22 Feb 2011 21:42:56 +0000 (21:42 +0000)]
Issue #11277: finally fix Snow Leopard crash following r88460.
(probably an OS-related issue with mmap)

14 years agoFix test.test_crypt.test_methods() to pass on OS X.
Brett Cannon [Tue, 22 Feb 2011 20:17:14 +0000 (20:17 +0000)]
Fix test.test_crypt.test_methods() to pass on OS X.