]> granicus.if.org Git - python/log
python
14 years ago#10354: remove last public mentions of 'template' and comment as private.
R David Murray [Thu, 23 Jun 2011 01:01:13 +0000 (21:01 -0400)]
#10354: remove last public mentions of 'template' and comment as private.

I didn't rename the variable because I can see no good reason
to break backward compatibility just to put an underscore in
the name.

14 years ago(merge 3.2) Issue #12383: skip test_empty_env() of subprocess on Windows
Victor Stinner [Wed, 22 Jun 2011 23:02:50 +0000 (01:02 +0200)]
(merge 3.2) Issue #12383: skip test_empty_env() of subprocess on Windows

Cannot test an empty environment on Windows: Windows requires at least the
SYSTEMROOT environment variable to start Python.

14 years agoIssue #12383: skip test_empty_env() of subprocess on Windows
Victor Stinner [Wed, 22 Jun 2011 23:02:25 +0000 (01:02 +0200)]
Issue #12383: skip test_empty_env() of subprocess on Windows

Cannot test an empty environment on Windows: Windows requires at least the
SYSTEMROOT environment variable to start Python.

14 years agoIssue #12363: improve siginterrupt() tests
Victor Stinner [Wed, 22 Jun 2011 20:15:51 +0000 (22:15 +0200)]
Issue #12363: improve siginterrupt() tests

Add a basic synchronization code between the child and the parent processes:
the child writes "ready" to stdout.

14 years ago(merge 3.2) Issue #12383: fix test_empty_env() of subprocess on Mac OS X
Victor Stinner [Wed, 22 Jun 2011 19:29:07 +0000 (21:29 +0200)]
(merge 3.2) Issue #12383: fix test_empty_env() of subprocess on Mac OS X

Mac OS X adds __CF_USER_TEXT_ENCODING variable to an empty environment. Fix
also the test on the Py_ENABLE_SHARED config varible: test that the variable is
present, don't check it's value.

14 years agoIssue #12383: fix test_empty_env() of subprocess on Mac OS X
Victor Stinner [Wed, 22 Jun 2011 19:28:43 +0000 (21:28 +0200)]
Issue #12383: fix test_empty_env() of subprocess on Mac OS X

Mac OS X adds __CF_USER_TEXT_ENCODING variable to an empty environment. Fix
also the test on the Py_ENABLE_SHARED config varible: test that the variable is
present, don't check it's value.

14 years ago#1874: detect invalid multipart CTE and report it as a defect.
R David Murray [Wed, 22 Jun 2011 17:47:53 +0000 (13:47 -0400)]
#1874: detect invalid multipart CTE and report it as a defect.

14 years ago(merge 3.2) Issue #12383: skip test_empty_env() if compiled is compiled in
Victor Stinner [Tue, 21 Jun 2011 19:59:51 +0000 (21:59 +0200)]
(merge 3.2) Issue #12383: skip test_empty_env() if compiled is compiled in
shared mode

Try also to get more informations about the Mac OS X failure: display the keys
of the environment, instead of just the number of variables.

14 years agoIssue #12383: skip test_empty_env() if compiled is compiled in shared mode
Victor Stinner [Tue, 21 Jun 2011 19:59:06 +0000 (21:59 +0200)]
Issue #12383: skip test_empty_env() if compiled is compiled in shared mode

Try also to get more informations about the Mac OS X failure: display the keys
of the environment, instead of just the number of variables.

14 years ago(merge 3.2) Close #12383: Fix subprocess module with env={}: don't copy the
Victor Stinner [Tue, 21 Jun 2011 15:24:21 +0000 (17:24 +0200)]
(merge 3.2) Close #12383: Fix subprocess module with env={}: don't copy the
environment variables, start with an empty environment.

14 years agoClose #12383: Fix subprocess module with env={}: don't copy the environment
Victor Stinner [Tue, 21 Jun 2011 15:18:38 +0000 (17:18 +0200)]
Close #12383: Fix subprocess module with env={}: don't copy the environment
variables, start with an empty environment.

14 years agomerge 3.2
Benjamin Peterson [Tue, 21 Jun 2011 03:09:20 +0000 (22:09 -0500)]
merge 3.2

14 years agofix indentation
Benjamin Peterson [Tue, 21 Jun 2011 03:09:13 +0000 (22:09 -0500)]
fix indentation

14 years agomerge 3.2
Benjamin Peterson [Tue, 21 Jun 2011 02:40:46 +0000 (21:40 -0500)]
merge 3.2

14 years agomerge heads
Benjamin Peterson [Tue, 21 Jun 2011 02:40:34 +0000 (21:40 -0500)]
merge heads

14 years agofix indentation
Benjamin Peterson [Tue, 21 Jun 2011 02:40:19 +0000 (21:40 -0500)]
fix indentation

14 years agomerge heads
Benjamin Peterson [Tue, 21 Jun 2011 00:24:31 +0000 (19:24 -0500)]
merge heads

14 years agoremove intrcheck.c, which hasn't been used for years
Benjamin Peterson [Tue, 21 Jun 2011 00:22:34 +0000 (19:22 -0500)]
remove intrcheck.c, which hasn't been used for years

14 years agoClose #12363: fix a race condition in siginterrupt() tests
Victor Stinner [Mon, 20 Jun 2011 21:28:09 +0000 (23:28 +0200)]
Close #12363: fix a race condition in siginterrupt() tests

The previous tests used time.sleep() to synchronize two processes. If the host
was too slow, the test could fail.

The new tests only use one process, but they use a subprocess to:

 - have only one thread
 - have a timeout on the blocking read (select cannot be used in the test,
   select always fail with EINTR, the kernel doesn't restart it)
 - not touch signal handling of the parent process

14 years ago(merge 3.2) Issue #12285: multiprocessing.Pool() raises a ValueError if the
Victor Stinner [Mon, 20 Jun 2011 15:54:03 +0000 (17:54 +0200)]
(merge 3.2) Issue #12285: multiprocessing.Pool() raises a ValueError if the
number of processes if negative or null.

14 years agoIssue #12285: multiprocessing.Pool() raises a ValueError if the number of
Victor Stinner [Mon, 20 Jun 2011 15:53:35 +0000 (17:53 +0200)]
Issue #12285: multiprocessing.Pool() raises a ValueError if the number of
processes if negative or null.

14 years agoClose #12289: Fix "is executable?" test in the CGI server
Victor Stinner [Mon, 20 Jun 2011 15:45:54 +0000 (17:45 +0200)]
Close #12289: Fix "is executable?" test in the CGI server

Use os.access(path, os.X_OK) instead of (os.stat(path).st_mode & 0o111 != 0),
and ignore the test on Windows.

14 years agomerge heads
Senthil Kumaran [Mon, 20 Jun 2011 14:37:59 +0000 (07:37 -0700)]
merge heads

14 years agomerge from 3.2 - Fix closes Issue12359 - Removing a confusing sentence from the previ...
Senthil Kumaran [Mon, 20 Jun 2011 14:33:25 +0000 (07:33 -0700)]
merge from 3.2 - Fix closes Issue12359 - Removing a confusing sentence from the previous change.

14 years agoFix closes Issue12359 - Removing a confusing sentence from the previous change.
Senthil Kumaran [Mon, 20 Jun 2011 14:30:34 +0000 (07:30 -0700)]
Fix closes Issue12359 - Removing a confusing sentence from the previous change.

14 years agocall_find_module() handles dup() failure: raise an OSError exception
Victor Stinner [Mon, 20 Jun 2011 13:16:55 +0000 (15:16 +0200)]
call_find_module() handles dup() failure: raise an OSError exception

14 years agofind_module_path_list() fails if _Py_fopen() failed and raised an exception
Victor Stinner [Mon, 20 Jun 2011 13:01:10 +0000 (15:01 +0200)]
find_module_path_list() fails if _Py_fopen() failed and raised an exception
(UnicodeEncodeError).

14 years agoIssue #6697: _lsprof: normalizeUserObj() doesn't encode/decode (UTF-8) the
Victor Stinner [Mon, 20 Jun 2011 12:59:53 +0000 (14:59 +0200)]
Issue #6697: _lsprof: normalizeUserObj() doesn't encode/decode (UTF-8) the
module name anymore, only work on unicode strings. Therefore it doesn't
truncate module names with embedded NUL characters, or fail if the module name
contains surrogate characters (UTF-8 encoder fails on a surrogate character).

Patch written by Alexander Belopolsky.

14 years agocalculate_path() decodes the PYTHONPATH environment variable from the locale
Victor Stinner [Mon, 20 Jun 2011 12:45:54 +0000 (14:45 +0200)]
calculate_path() decodes the PYTHONPATH environment variable from the locale
encoding using _Py_char2wchar() instead of mbstowcs() to store undecodable
bytes as surrogates characters (PEP 383) instead of ignoring silently
the PYTHONPATH variable.

14 years agomerge from 3.2
Senthil Kumaran [Mon, 20 Jun 2011 01:23:17 +0000 (18:23 -0700)]
merge from 3.2

14 years agoFix closes issue 12360 - correcting parameter names in asyncore documentation.
Senthil Kumaran [Mon, 20 Jun 2011 01:22:33 +0000 (18:22 -0700)]
Fix closes issue 12360 -  correcting parameter names in asyncore documentation.

14 years agomerge heads
Benjamin Peterson [Mon, 20 Jun 2011 00:55:19 +0000 (19:55 -0500)]
merge heads

14 years agobump magic for super closure change
Benjamin Peterson [Mon, 20 Jun 2011 00:54:45 +0000 (19:54 -0500)]
bump magic for super closure change

14 years agomerge heads
Senthil Kumaran [Mon, 20 Jun 2011 00:50:53 +0000 (17:50 -0700)]
merge heads

14 years agomerge heads
Benjamin Peterson [Mon, 20 Jun 2011 00:48:38 +0000 (19:48 -0500)]
merge heads

14 years agooutstanding merge with 3.2
Senthil Kumaran [Mon, 20 Jun 2011 00:48:35 +0000 (17:48 -0700)]
outstanding merge with 3.2

14 years agouse a invalid name for the __class__ closure for super() (closes #12370)
Benjamin Peterson [Mon, 20 Jun 2011 00:42:22 +0000 (19:42 -0500)]
use a invalid name for the __class__ closure for super() (closes #12370)

This prevents the assignment of __class__ in the class body from breaking
super. (Although a determined person could do locals()["@__class__"] = 4)

14 years agominor space nit.
Senthil Kumaran [Mon, 20 Jun 2011 00:41:33 +0000 (17:41 -0700)]
minor space nit.

14 years agomerge from 3.2. Issue 12359
Senthil Kumaran [Mon, 20 Jun 2011 00:41:01 +0000 (17:41 -0700)]
merge from 3.2. Issue 12359

14 years agoFix closes Issue12359 - Minor update to module import description.
Senthil Kumaran [Mon, 20 Jun 2011 00:37:06 +0000 (17:37 -0700)]
Fix closes Issue12359 - Minor update to module import description.

14 years agomerge from 3.2
Senthil Kumaran [Mon, 20 Jun 2011 00:00:29 +0000 (17:00 -0700)]
merge from 3.2

14 years agoWhitespace nit fixed using reident.
Senthil Kumaran [Sun, 19 Jun 2011 23:59:41 +0000 (16:59 -0700)]
Whitespace nit fixed using reident.

14 years agomerge from 3.2. Updates to http.client documentation.
Senthil Kumaran [Sun, 19 Jun 2011 23:57:49 +0000 (16:57 -0700)]
merge from 3.2. Updates to http.client documentation.

14 years agoFix closes Issue12315 - Updates to http.client documentation.
Senthil Kumaran [Sun, 19 Jun 2011 23:56:49 +0000 (16:56 -0700)]
Fix closes Issue12315 - Updates to http.client documentation.

14 years agomerge 3.2
Benjamin Peterson [Sun, 19 Jun 2011 22:49:22 +0000 (17:49 -0500)]
merge 3.2

14 years agofix uglyNamingConvention
Benjamin Peterson [Sun, 19 Jun 2011 22:49:13 +0000 (17:49 -0500)]
fix uglyNamingConvention

14 years agoremove duplicate -I
Benjamin Peterson [Sun, 19 Jun 2011 22:17:30 +0000 (17:17 -0500)]
remove duplicate -I

14 years agomerge from 3.2
Senthil Kumaran [Sun, 19 Jun 2011 20:56:56 +0000 (13:56 -0700)]
merge from 3.2

14 years agomerge from 3.1 for issue issue12261.
Senthil Kumaran [Sun, 19 Jun 2011 20:55:48 +0000 (13:55 -0700)]
merge from 3.1 for issue issue12261.

14 years agoFix closes issue12261 - Minor documention changes in the urllib.parse.rst
Senthil Kumaran [Sun, 19 Jun 2011 20:52:49 +0000 (13:52 -0700)]
Fix closes issue12261 - Minor documention changes in the urllib.parse.rst

14 years agoImprove documentation of packaging hooks
Éric Araujo [Sun, 19 Jun 2011 19:34:16 +0000 (21:34 +0200)]
Improve documentation of packaging hooks

14 years agopackaging: Add the project directory to sys.path to support local setup hooks.
Éric Araujo [Sun, 19 Jun 2011 19:23:43 +0000 (21:23 +0200)]
packaging: Add the project directory to sys.path to support local setup hooks.

Original patch by Vinay Sajip on #11637.

14 years agoAdd missing documentation for packaging.pypi.base and .simple
Éric Araujo [Sun, 19 Jun 2011 17:23:48 +0000 (19:23 +0200)]
Add missing documentation for packaging.pypi.base and .simple

14 years agoFix typo
Éric Araujo [Sun, 19 Jun 2011 16:53:31 +0000 (18:53 +0200)]
Fix typo

14 years agomerge heads
Benjamin Peterson [Sun, 19 Jun 2011 14:38:02 +0000 (09:38 -0500)]
merge heads

14 years agoclarify
Benjamin Peterson [Sun, 19 Jun 2011 14:37:18 +0000 (09:37 -0500)]
clarify

14 years agofaulthandler doc: the the => the
Victor Stinner [Sun, 19 Jun 2011 14:07:20 +0000 (16:07 +0200)]
faulthandler doc: the the => the

14 years agoACKS update for devguide patch (closes #12278)
Nick Coghlan [Sun, 19 Jun 2011 13:07:49 +0000 (23:07 +1000)]
ACKS update for devguide patch (closes #12278)

14 years ago#6771: Move wrapper function into __init__ and eliminate wrapper module
R David Murray [Sun, 19 Jun 2011 00:21:09 +0000 (20:21 -0400)]
#6771: Move wrapper function into __init__ and eliminate wrapper module

Andrew agreed in the issue that eliminating the module file made sense.
Wrapper has only been exposed as a function, and so there is no (easy)
way to access the wrapper module, which in any case only had the one
function in it.  Since __init__ already contains a couple wrapper
functions, it seems to make sense to just move wrapper there instead of
importing it from a single function module.

14 years agomerge #6771: fix docs: curses.wrapper is exposed as a function, not a module
R David Murray [Sat, 18 Jun 2011 23:41:43 +0000 (19:41 -0400)]
merge #6771: fix docs: curses.wrapper is exposed as a function, not a module

14 years ago#6771: fix docs: curses.wrapper is exposed as a function, not a module
R David Murray [Sat, 18 Jun 2011 23:34:12 +0000 (19:34 -0400)]
#6771: fix docs: curses.wrapper is exposed as a function, not a module

Patch by July Tikhonov.

14 years agomerge #11584: make Header and make_header handle binary unknown-8bit input
R David Murray [Sat, 18 Jun 2011 17:02:42 +0000 (13:02 -0400)]
merge #11584: make Header and make_header handle binary unknown-8bit input

14 years ago#11584: make Header and make_header handle binary unknown-8bit input
R David Murray [Sat, 18 Jun 2011 16:57:28 +0000 (12:57 -0400)]
#11584: make Header and make_header handle binary unknown-8bit input

Analogous to the decode_header fix, this fix makes Header.append and
make_header correctly handle the unknown-8bit charset introduced by email5.1,
when the input to them is binary strings.  Previous to this fix the
make_header(decode_header(x)) == x invariant was broken in the face of the
unknown-8bit charset.

14 years agomerge #11584: make decode_header handle Header objects correctly
R David Murray [Sat, 18 Jun 2011 16:32:27 +0000 (12:32 -0400)]
merge #11584: make decode_header handle Header objects correctly

This updates 12e39cd7a0e4 (merge of b21fdfa0019c), which fixed this bug
incorrectly.

14 years ago#11584: make decode_header handle Header objects correctly
R David Murray [Sat, 18 Jun 2011 16:30:55 +0000 (12:30 -0400)]
#11584: make decode_header handle Header objects correctly

This updates b21fdfa0019c, which fixed this bug incorrectly.

14 years ago#11781: update windows build script to account for move of email tests
R David Murray [Sat, 18 Jun 2011 15:45:59 +0000 (11:45 -0400)]
#11781: update windows build script to account for move of email tests

14 years agomerge #11700: proxy object close methods can now be called multiple times
R David Murray [Sat, 18 Jun 2011 02:25:14 +0000 (22:25 -0400)]
merge #11700: proxy object close methods can now be called multiple times

14 years ago#11700: proxy object close methods can now be called multiple times
R David Murray [Sat, 18 Jun 2011 02:24:05 +0000 (22:24 -0400)]
#11700: proxy object close methods can now be called multiple times

This makes them work like the close provided by regular file objects.

14 years agoedit and rewrite
Benjamin Peterson [Sat, 18 Jun 2011 00:54:52 +0000 (19:54 -0500)]
edit and rewrite

14 years agoMake decorators used in packaging preserve docstrings
Éric Araujo [Fri, 17 Jun 2011 19:10:21 +0000 (21:10 +0200)]
Make decorators used in packaging preserve docstrings

14 years agoBrange merge
Éric Araujo [Fri, 17 Jun 2011 17:39:18 +0000 (19:39 +0200)]
Brange merge

14 years agoBrange merge
Éric Araujo [Fri, 17 Jun 2011 17:38:38 +0000 (19:38 +0200)]
Brange merge

14 years agomerge #11767: use context manager to close file in __getitem__ to prevent FD leak
R David Murray [Fri, 17 Jun 2011 16:56:41 +0000 (12:56 -0400)]
merge #11767: use context manager to close file in __getitem__ to prevent FD leak

14 years ago#11767: use context manager to close file in __getitem__ to prevent FD leak
R David Murray [Fri, 17 Jun 2011 16:54:56 +0000 (12:54 -0400)]
#11767: use context manager to close file in __getitem__ to prevent FD leak

All of the other methods in mailbox that create message objects take care to
close the file descriptors they use, so it seems to make sense to have
__getitem__ do so as well.

Patch by Filip Gruszczyński.

14 years ago#12313: update Makefile.pre.in to account for email tests moving to 'test' dir
R David Murray [Fri, 17 Jun 2011 15:41:49 +0000 (11:41 -0400)]
#12313: update Makefile.pre.in to account for email tests moving to 'test' dir

14 years agoMinor tweaks to packaging tests.
Éric Araujo [Fri, 17 Jun 2011 13:47:41 +0000 (15:47 +0200)]
Minor tweaks to packaging tests.

- Move a tearDown method right after setUp
- Use assertRaises instead of reinventing it
- Skip a test instead of commenting it out, as a reminder

14 years agoPackaging tests: don’t let an internal cache grow indefinitely.
Éric Araujo [Fri, 17 Jun 2011 13:43:18 +0000 (15:43 +0200)]
Packaging tests: don’t let an internal cache grow indefinitely.

Victor Stinner diagnosed on #12167 that some reference leaks came from
util._path_created, a set used for caching; there are two tests that
cause additions to this set, so now they clear it in tearDown, avoiding
17 refleaks.  (My tests show that it’s necessary to clear the set in
only one test, clearing it in both does not stop more refleaks, but
there’s no harm in doing it.)

14 years ago(Merge 3.2) posixmodule.c: fix function name in argument parsing
Victor Stinner [Fri, 17 Jun 2011 13:18:16 +0000 (15:18 +0200)]
(Merge 3.2) posixmodule.c: fix function name in argument parsing

Fix os.fchown() and os.open()

Remove also trailing spaces and replace tabs by spaces.

14 years agoposixmodule.c: fix function name in argument parsing
Victor Stinner [Fri, 17 Jun 2011 13:15:38 +0000 (15:15 +0200)]
posixmodule.c: fix function name in argument parsing

Fix os.fchown() and os.open()

Remove also trailing spaces and replace tabs by spaces.

14 years ago(Merge 3.2) Issue #10883: test_urllib2net closes socket explicitly
Victor Stinner [Fri, 17 Jun 2011 12:53:41 +0000 (14:53 +0200)]
(Merge 3.2) Issue #10883: test_urllib2net closes socket explicitly

14 years agoIssue #10883: test_urllib2net closes socket explicitly
Victor Stinner [Fri, 17 Jun 2011 12:53:02 +0000 (14:53 +0200)]
Issue #10883: test_urllib2net closes socket explicitly

14 years ago(Merge 3.2) Issue #12133: fix a ResourceWarning in urllib.request
Victor Stinner [Fri, 17 Jun 2011 12:02:18 +0000 (14:02 +0200)]
(Merge 3.2) Issue #12133: fix a ResourceWarning in urllib.request

AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if
its getresponse() method fails with a socket error. Patch written by Ezio
Melotti.

14 years agoIssue #12133: fix a ResourceWarning in urllib.request
Victor Stinner [Fri, 17 Jun 2011 12:01:18 +0000 (14:01 +0200)]
Issue #12133: fix a ResourceWarning in urllib.request

AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection if
its getresponse() method fails with a socket error. Patch written by Ezio
Melotti.

14 years agoIssue #12333: run tests on the new module in a subprocess
Victor Stinner [Fri, 17 Jun 2011 11:52:56 +0000 (13:52 +0200)]
Issue #12333: run tests on the new module in a subprocess

It is not possible to unload a module written in C, so use a subprocess to run
the tests on the module compiled by test_build_ext(). Using a subprocess, we
don't have to unload the module, save/restore sys.path, and the test can be run
more than once.

This commit fixes also an access error on rmtree() on Windows: because the
module was not really unloaded, it was not possible to remove the temporary
directory (it is not possible to remove a directory on Windows if it still
contains an open file).

14 years agoIssue #12333: close files before removing the directory
Victor Stinner [Fri, 17 Jun 2011 11:25:53 +0000 (13:25 +0200)]
Issue #12333: close files before removing the directory

packaging.tests.support.TempdirManager: rmtree() fails on Windows if there are
still open files in the directory.

14 years agoMinor tweaks in packaging’s test_dist.
Éric Araujo [Fri, 17 Jun 2011 11:24:33 +0000 (13:24 +0200)]
Minor tweaks in packaging’s test_dist.

- Use different Metadata objects to write and read a PKG-INFO (METADATA)
  file, to make sure the tested values come from the file

- No need to restore methods on an instance after monkey-patching them:
  the methods are still the same on the class

- Harmonize dedent calls

14 years ago(Merge 3.2) Issue #12310: finalize the old process after _run_after_forkers()
Victor Stinner [Fri, 17 Jun 2011 10:36:26 +0000 (12:36 +0200)]
(Merge 3.2) Issue #12310: finalize the old process after _run_after_forkers()

multiprocessing: Process._bootstrap() keeps a reference to the old process to
delay its finalization until after _run_after_forkers() as been executed. This
change should fix a crash on Mac OS X Tiger when a lock is released after a
fork.

Patch written by Charles-François Nataliv and Antoine Pitrou.

14 years agoIssue #12310: finalize the old process after _run_after_forkers()
Victor Stinner [Fri, 17 Jun 2011 10:31:49 +0000 (12:31 +0200)]
Issue #12310: finalize the old process after _run_after_forkers()

multiprocessing: Process._bootstrap() keeps a reference to the old process to
delay its finalization until after _run_after_forkers() as been executed. This
change should fix a crash on Mac OS X Tiger when a lock is released after a
fork.

Patch written by Charles-François Nataliv and Antoine Pitrou.

14 years agoIssue #12333: restore the previous dir before removing the current directory
Victor Stinner [Fri, 17 Jun 2011 10:20:46 +0000 (12:20 +0200)]
Issue #12333: restore the previous dir before removing the current directory

packaging.tests.support.TempdirManager: removing the current directory is not
allowed on Windows or Solaris. Store the current directory and restore it
before removing the temporary directory (which is used as the working directory
during the tests).

14 years agomerge heads
Benjamin Peterson [Thu, 16 Jun 2011 23:51:42 +0000 (18:51 -0500)]
merge heads

14 years agomerge 3.2
Benjamin Peterson [Thu, 16 Jun 2011 23:51:37 +0000 (18:51 -0500)]
merge 3.2

14 years agomerge heads
Benjamin Peterson [Thu, 16 Jun 2011 23:51:24 +0000 (18:51 -0500)]
merge heads

14 years agomerge 3.2
Benjamin Peterson [Thu, 16 Jun 2011 23:50:21 +0000 (18:50 -0500)]
merge 3.2

14 years agoupdate link to pycrypto (closes #12351)
Benjamin Peterson [Thu, 16 Jun 2011 23:49:46 +0000 (18:49 -0500)]
update link to pycrypto (closes #12351)

14 years agoRemove unused code in packaging.pypi.dist
Éric Araujo [Thu, 16 Jun 2011 21:50:17 +0000 (23:50 +0200)]
Remove unused code in packaging.pypi.dist

14 years agoStop binding sys.path as default parameter value in packaging.
Éric Araujo [Thu, 16 Jun 2011 21:43:15 +0000 (23:43 +0200)]
Stop binding sys.path as default parameter value in packaging.

The two public functions in database default to sys.path if the given
*paths* argument is None; the private functions don’t have default
values for their arguments anymore, which is fine as the public
functions that call them pass their arguments down.  Likewise in
install, the functions will pass down their *paths* arguments down to
database functions.

A one-line unneeded function in install was removed instead of being
changed, and the few remaining tests that used brute-force restoration
of sys.path have been cleaned up to use sys.path.remove.

14 years agoPackaging: remove last mentions and uses of setup.py in the code.
Éric Araujo [Thu, 16 Jun 2011 21:34:55 +0000 (23:34 +0200)]
Packaging: remove last mentions and uses of setup.py in the code.

Now only the compatibility layer (in create, util and install) talk
about setup.py.

14 years agoFix typo.
Raymond Hettinger [Thu, 16 Jun 2011 21:33:20 +0000 (22:33 +0100)]
Fix typo.

14 years agoFix typo.
Raymond Hettinger [Thu, 16 Jun 2011 21:32:10 +0000 (22:32 +0100)]
Fix typo.

14 years agoClean up packaging.tests.test_mixin2to3
Éric Araujo [Thu, 16 Jun 2011 21:21:01 +0000 (23:21 +0200)]
Clean up packaging.tests.test_mixin2to3