]>
granicus.if.org Git - python/log
Éric Araujo [Sun, 31 Jul 2011 00:04:00 +0000 (02:04 +0200)]
Fix regression with distutils MANIFEST handing (#11104, #8688).
The changed behavior of sdist in 2.7 broke packaging for projects that
wanted to use a manually-maintained MANIFEST file (instead of having a
MANIFEST.in template and letting distutils generate the MANIFEST).
The fixes that were committed for #8688 (
d29399100973 by Tarek and
f7639dcdffc3 by me) did not fix all issues exposed in the bug report,
and also added one problem: the MANIFEST file format gained comments,
but the read_manifest method was not updated to handle (i.e. ignore)
them. This changeset should fix everything; the tests have been
expanded and I successfully tested with Mercurial, which suffered from
this regression.
I have grouped the versionchanged directives for these bugs in one place
and added micro version numbers to help users know the quirks of the
exact version they’re using. I also removed a stanza in the docs that
was forgotten in Tarek’s first changeset.
Initial report, thorough diagnosis and patch by John Dennis, further
work on the patch by Stephen Thorne, and a few edits and additions by
me.
Éric Araujo [Sat, 30 Jul 2011 19:34:04 +0000 (21:34 +0200)]
Let “make patchcheck” work for out-of-dir builds (#9860)
Eli Bendersky [Sat, 30 Jul 2011 08:12:45 +0000 (11:12 +0300)]
Issue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri Lehtinen
Éric Araujo [Fri, 29 Jul 2011 16:04:24 +0000 (18:04 +0200)]
Document that atexit execution order is undefined (#9788)
Éric Araujo [Fri, 29 Jul 2011 15:59:17 +0000 (17:59 +0200)]
Add a link target for argparse.Namespace (#8982)
Éric Araujo [Fri, 29 Jul 2011 15:34:35 +0000 (17:34 +0200)]
Make “pydoc somebuiltin.somemethod” work (#8887)
Éric Araujo [Fri, 29 Jul 2011 14:28:22 +0000 (16:28 +0200)]
Backout duplicate changeset
ed34ca4e639c
Éric Araujo [Sat, 11 Jun 2011 08:34:19 +0000 (10:34 +0200)]
Add missing reST target to one heading in the tutorial
Éric Araujo [Fri, 29 Jul 2011 12:23:13 +0000 (14:23 +0200)]
Branch merge
Eli Bendersky [Fri, 29 Jul 2011 11:45:08 +0000 (14:45 +0300)]
Issue #12531: add index entries to documentation of * and ** in function calls
Raymond Hettinger [Fri, 29 Jul 2011 06:56:38 +0000 (23:56 -0700)]
Issue 12514: Use try/finally to assure that timeit restores GC when done.
Éric Araujo [Thu, 28 Jul 2011 20:50:18 +0000 (22:50 +0200)]
Turn raw URI into real link
Éric Araujo [Fri, 29 Jul 2011 10:10:53 +0000 (12:10 +0200)]
Update documentation for shutil.move (#12043) and fix a few typos.
Adding Sandro Tosi to Doc/ACKS for this patch and all his work on the
docs mailing list and on the bug tracker.
Éric Araujo [Fri, 29 Jul 2011 10:07:31 +0000 (12:07 +0200)]
Stop ignoring Mercurial merge conflits files (#12255).
R. David Murray and I think that it’s more useful to have these files
show up in the output of “hg status”, to let the user know that some
merged file have to be checked before commit. If you want to ignore
these files in your clones, it’s possible to do so from another ignore
file; see the bug report for directions.
Éric Araujo [Fri, 29 Jul 2011 10:07:04 +0000 (12:07 +0200)]
Make VCSes ignore the compiled shared library file (#12255)
Éric Araujo [Fri, 29 Jul 2011 10:06:13 +0000 (12:06 +0200)]
Fix missing or shebangs and executable bits for scripts (#10318)
Senthil Kumaran [Thu, 28 Jul 2011 14:30:27 +0000 (22:30 +0800)]
Fix closes Issue11439 - Handle the SVN Keywords in 2.7 by replacing them with a high number so that code relying on them does not break.
Jason R. Coombs [Wed, 27 Jul 2011 18:05:37 +0000 (14:05 -0400)]
Fixes #10639: reindent.py should not convert newlines
Backport of changeset
070dc6e359fb , reindent.py now will use the newline detected in the original file and will report an error if mixed newlines are encountered.
Charles-François Natali [Wed, 27 Jul 2011 17:36:40 +0000 (19:36 +0200)]
- Issue #12603: Fix pydoc.synopsis() on files with non-negative st_mtime.
Ross Lagerwall [Wed, 27 Jul 2011 16:54:53 +0000 (18:54 +0200)]
Issue #12607: In subprocess, fix issue where if stdin, stdout or stderr is
given as a low fd, it gets overwritten.
Senthil Kumaran [Wed, 27 Jul 2011 15:36:51 +0000 (23:36 +0800)]
merge from 3.2 - Fix closes Issue12621 - Fix docstrings of find and rfind methods of bytes/bytearry/unicodeobject.
Ezio Melotti [Wed, 27 Jul 2011 05:48:52 +0000 (08:48 +0300)]
#12642: fix args names in open() doc.
Senthil Kumaran [Wed, 27 Jul 2011 01:37:17 +0000 (09:37 +0800)]
merge from 3.2 - fix urlopen behavior on sites which do not send (or obsfuscates) Connection: Close header.
Ned Deily [Wed, 27 Jul 2011 01:16:08 +0000 (18:16 -0700)]
Issue #12590: IDLE editor window now always displays the first line
when opening a long file. With Tk 8.5, the first line was hidden.
Ned Deily [Tue, 26 Jul 2011 20:52:14 +0000 (13:52 -0700)]
Issue #8746: Use tempfile module to get tempdir and randomize the
link file name.
Éric Araujo [Tue, 26 Jul 2011 14:54:24 +0000 (16:54 +0200)]
Make indentation comply with our style guide and the rest of the file
Éric Araujo [Fri, 29 Jul 2011 09:57:50 +0000 (11:57 +0200)]
Fix “anyways” (following R. David Murray in
5c7520e02d5a )
Éric Araujo [Fri, 29 Jul 2011 09:53:57 +0000 (11:53 +0200)]
Add links from builtins module docs to built-in functions and constants docs
Éric Araujo [Fri, 29 Jul 2011 09:43:47 +0000 (11:43 +0200)]
Ross Lagerwall [Mon, 25 Jul 2011 05:23:58 +0000 (07:23 +0200)]
Issue #12102: Document that buffered files must be flushed before being used
with mmap. Patch by Steffen Daode Nurpmeso.
Charles-François Natali [Sun, 24 Jul 2011 20:33:35 +0000 (22:33 +0200)]
Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling.
Antoine Pitrou [Sun, 24 Jul 2011 00:51:01 +0000 (02:51 +0200)]
Issue #1813: Fix codec lookup and setting/getting locales under Turkish locales.
Nadeem Vawda [Sat, 23 Jul 2011 15:04:42 +0000 (17:04 +0200)]
Fix typo in
dbf1e1a27427 that was causing some buildbots to fail.
Nadeem Vawda [Sat, 23 Jul 2011 14:13:01 +0000 (16:13 +0200)]
Fix typo in NEWS entry for
dbf1e1a27427 .
Nadeem Vawda [Sat, 23 Jul 2011 13:51:16 +0000 (15:51 +0200)]
Issue #10883: Fix socket leaks in urllib.request.
* ftpwrapper now uses reference counting to ensure that the underlying socket
is closed when the ftpwrapper object is no longer in use
* ftplib.FTP.ntransfercmd() now closes the socket if an error occurs
Initial patch by Victor Stinner.
Senthil Kumaran [Sat, 23 Jul 2011 10:41:43 +0000 (18:41 +0800)]
merge from 3.2 - Fix closes issue12581 - Increase the urllib.parse test coverage (cases applicable to 2.7). Patch by Petter Haggholm.
Georg Brandl [Sat, 23 Jul 2011 06:06:33 +0000 (08:06 +0200)]
Fix function name: open -> urlopen.
Benjamin Peterson [Fri, 22 Jul 2011 22:21:56 +0000 (17:21 -0500)]
merge heads
Benjamin Peterson [Fri, 22 Jul 2011 22:20:58 +0000 (17:20 -0500)]
allow None identifiers
Charles-François Natali [Fri, 22 Jul 2011 21:43:42 +0000 (23:43 +0200)]
Issue #12592: Make Python build on OpenBSD 5 (and future major releases).
Benjamin Peterson [Fri, 22 Jul 2011 15:41:44 +0000 (10:41 -0500)]
news note
Benjamin Peterson [Fri, 22 Jul 2011 15:39:50 +0000 (10:39 -0500)]
verify the types of AST strings and identifiers (closes #12609 and #12610)
Benjamin Peterson [Fri, 22 Jul 2011 15:39:12 +0000 (10:39 -0500)]
hardcode the old svn __version__
Eli Bendersky [Fri, 22 Jul 2011 11:39:55 +0000 (14:39 +0300)]
Issue #12434: make StringIO.write error message consistent with Python 2.7 nomenclature
Charles-François Natali [Thu, 21 Jul 2011 17:41:04 +0000 (19:41 +0200)]
Issue #12372: POSIX semaphores are broken on AIX: don't use them.
Ezio Melotti [Thu, 21 Jul 2011 08:38:13 +0000 (11:38 +0300)]
Fix markup.
Ezio Melotti [Thu, 21 Jul 2011 08:18:18 +0000 (11:18 +0300)]
#12601: fix typo.
Senthil Kumaran [Wed, 20 Jul 2011 14:02:27 +0000 (22:02 +0800)]
merge from 3.2 - Fix closes issue12524 - update http.client POST example with a working example. - Patch contributed by Bharadwaj
Barry Warsaw [Tue, 19 Jul 2011 23:28:16 +0000 (19:28 -0400)]
Upstream merge.
Antoine Pitrou [Tue, 19 Jul 2011 22:26:23 +0000 (00:26 +0200)]
Issue #12571: Add a plat-linux3 directory mirroring the plat-linux2 directory,
so that "import DLFCN" and other similar imports work on Linux 3.0.
Barry Warsaw [Tue, 19 Jul 2011 21:06:30 +0000 (17:06 -0400)]
- Issue #10309: Define _GNU_SOURCE so that mremap() gets the proper
signature. Without this, architectures where sizeof void* != sizeof int are
broken. Patch given by Hallvard B Furuseth.
Raymond Hettinger [Tue, 19 Jul 2011 18:59:20 +0000 (11:59 -0700)]
Improve docstring for divmod()
Raymond Hettinger [Tue, 19 Jul 2011 08:35:35 +0000 (01:35 -0700)]
A number of small fixups for the sorting howto guide.
R David Murray [Tue, 19 Jul 2011 01:34:04 +0000 (21:34 -0400)]
#7484: no more <> around addresses in VRFY or EXPN
The RFC doesn't say that they are allowed; apparently many mailers accept
them, but not postfix. Contributions to this patch were made by Felipe Cruz
and Catalin Iacob.
Senthil Kumaran [Tue, 19 Jul 2011 00:05:44 +0000 (08:05 +0800)]
merge from 3.2 - Fix closes issue12577 - clarify shutil.move documentation. Patch suggestion by Catalin Iacob
Antoine Pitrou [Mon, 18 Jul 2011 23:26:58 +0000 (01:26 +0200)]
Issue #6476: Document that os.spawnle and os.spawnve are not thread-safe under Windows.
R David Murray [Mon, 18 Jul 2011 16:39:54 +0000 (12:39 -0400)]
Better English.
Georg Brandl [Mon, 18 Jul 2011 08:39:55 +0000 (10:39 +0200)]
Add missing "a".
Alex Gaynor [Sun, 17 Jul 2011 23:44:31 +0000 (16:44 -0700)]
Senthil Kumaran [Sun, 17 Jul 2011 23:18:40 +0000 (07:18 +0800)]
fix whitespace in rst.
Senthil Kumaran [Sun, 17 Jul 2011 23:16:02 +0000 (07:16 +0800)]
merge from 3.2 - Fix closes Issue12478 - HTTPErrorProcess 's methods are http_response and https_response.
Senthil Kumaran [Sun, 17 Jul 2011 22:44:11 +0000 (06:44 +0800)]
merge from 3.2 - Fix closes Issue12479 - Add HTTPErrorProcessor class definition - Patch by Sandro Tosi
Senthil Kumaran [Sun, 17 Jul 2011 11:10:10 +0000 (19:10 +0800)]
merge from 3.2 - Issue10403 - datetime module documentation changes based on review.
Senthil Kumaran [Sun, 17 Jul 2011 09:31:51 +0000 (17:31 +0800)]
merge from 3.2.
Eli Bendersky [Sun, 17 Jul 2011 02:54:06 +0000 (05:54 +0300)]
Issue #12574: correct capitalization of the Queue module. Patch by Rafe Kettler
Antoine Pitrou [Fri, 15 Jul 2011 19:22:50 +0000 (21:22 +0200)]
Issue #11603: Fix a crash when __str__ is rebound as __repr__.
Patch by Andreas Stührk.
Benjamin Peterson [Fri, 15 Jul 2011 19:15:40 +0000 (14:15 -0500)]
port
8d05f697acd4 (#11627)
Charles-François Natali [Thu, 14 Jul 2011 17:49:02 +0000 (19:49 +0200)]
Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.
Victor Stinner [Thu, 14 Jul 2011 12:53:24 +0000 (14:53 +0200)]
Issue #12250: test_socketserver uses a timeout of 60 seconds instead of 20
test_shutdown() may fail on very slow buildbots like FreeBSD 6.4 just because
of the arbitrary timeout.
Raymond Hettinger [Thu, 14 Jul 2011 06:41:43 +0000 (14:41 +0800)]
It is really a suffix :-)
Benjamin Peterson [Thu, 14 Jul 2011 04:09:30 +0000 (23:09 -0500)]
carefully cleanup pointer cache after creating struct pointers
Ned Deily [Wed, 13 Jul 2011 22:05:31 +0000 (15:05 -0700)]
Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
as the processor type on some Mac systems. Also fix NameError in fallback
_mac_ver_gestalt function. And remove out-of-date URL in docs.
Victor Stinner [Wed, 13 Jul 2011 19:47:31 +0000 (21:47 +0200)]
Close #4376: ctypes now supports nested structures in a endian different than
the parent structure. Patch by Vlad Riscutia.
Georg Brandl [Wed, 13 Jul 2011 13:59:24 +0000 (15:59 +0200)]
Clarify that PyErr_NewException creates an exception *class*, not instance.
Benjamin Peterson [Wed, 13 Jul 2011 00:21:42 +0000 (19:21 -0500)]
this can be done without a custom dict (also fixes #12544)
Antoine Pitrou [Tue, 12 Jul 2011 20:04:20 +0000 (22:04 +0200)]
Issue #12149: Update the method cache after a type's dictionnary gets
cleared by the garbage collector. This fixes a segfault when an instance
and its type get caught in a reference cycle, and the instance's
deallocator calls one of the methods on the type (e.g. when subclassing
IOBase).
Diagnosis and patch by Davide Rizzo.
Antoine Pitrou [Sat, 9 Jul 2011 19:29:36 +0000 (21:29 +0200)]
Mention logging.captureWarnings in the warnings module doc.
Antoine Pitrou [Sat, 9 Jul 2011 14:06:19 +0000 (16:06 +0200)]
Move sys.subversion at the right place in alphabetical order,
and add a note concerning its status.
Antoine Pitrou [Sat, 9 Jul 2011 13:48:29 +0000 (15:48 +0200)]
Issue #12326: document the recommended idiom for checking sys.platform on Unix systems.
Also, point to the various alternatives.
Antoine Pitrou [Sat, 9 Jul 2011 00:34:05 +0000 (02:34 +0200)]
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution.
Should fix a buildbot failure.
Antoine Pitrou [Fri, 8 Jul 2011 17:40:15 +0000 (19:40 +0200)]
Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
Web site.
Antoine Pitrou [Fri, 8 Jul 2011 17:14:19 +0000 (19:14 +0200)]
Avoid failing in test_urllibnet.test_bad_address when some overzealous
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead.
Victor Stinner [Fri, 8 Jul 2011 00:14:55 +0000 (02:14 +0200)]
Issue #12423: Fix os.abort() documentation
The Python signal handler for SIGABRT is not called on os.abort() (only if the
signal is raised manually or sent by another process). Patch by Kamil Kisiel.
Victor Stinner [Fri, 8 Jul 2011 00:07:45 +0000 (02:07 +0200)]
Close #12501: Adjust callable() warning: callable() is only not supported in
Python 3.1. callable() is again supported in Python 3.2.
Ned Deily [Wed, 6 Jul 2011 02:08:38 +0000 (19:08 -0700)]
Issue #8716: Instead of relying on Aqua Tk exceptions to detect lack of
OS X window manager connection in tk tests, use OS X Application Services
API calls instead.
Ned Deily [Tue, 5 Jul 2011 22:09:32 +0000 (15:09 -0700)]
Issue #8716: Back out temporary changeset
18ce15f841cf
Ned Deily [Tue, 5 Jul 2011 21:16:03 +0000 (14:16 -0700)]
Issue #8716: Add temporary code for 2.7 to help diagnose buildbot failure.
Victor Stinner [Tue, 5 Jul 2011 12:50:35 +0000 (14:50 +0200)]
Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing
Victor Stinner [Tue, 5 Jul 2011 12:08:01 +0000 (14:08 +0200)]
Issue #12493: subprocess: communicate() handles EINTR
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
Victor Stinner [Tue, 5 Jul 2011 11:29:26 +0000 (13:29 +0200)]
test_io: make quiet the DeprecationWarning('classic int division')
Victor Stinner [Tue, 5 Jul 2011 11:14:17 +0000 (13:14 +0200)]
test_array: make quiet the DeprecationWarning
Victor Stinner [Tue, 5 Jul 2011 09:28:19 +0000 (11:28 +0200)]
Issue #9611, #9015: FileIO.read(), FileIO.readinto(), FileIO.write() and
os.write() clamp the length to INT_MAX on Windows.
Benjamin Peterson [Tue, 5 Jul 2011 03:27:16 +0000 (22:27 -0500)]
start out this branch always with filename NULL
Senthil Kumaran [Mon, 4 Jul 2011 19:50:02 +0000 (12:50 -0700)]
Fix closes issue10403 - Let's not use members anymore.
Victor Stinner [Mon, 4 Jul 2011 09:44:46 +0000 (11:44 +0200)]
Issue #12429: Skip interrupted write tests on FreeBSD <= 7
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
Ned Deily [Mon, 4 Jul 2011 06:16:49 +0000 (23:16 -0700)]
Issue #8716: Fix errors in the non-OS X path of the 27 backport.
Ned Deily [Mon, 4 Jul 2011 04:52:35 +0000 (21:52 -0700)]
Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).
Ned Deily [Mon, 4 Jul 2011 04:37:03 +0000 (21:37 -0700)]
Issue #10734: Temporarily disable test_ttk test_heading_callback on 2.7 as well.
Benjamin Peterson [Mon, 4 Jul 2011 03:18:34 +0000 (22:18 -0500)]
plug refleak
Victor Stinner [Mon, 4 Jul 2011 01:05:37 +0000 (03:05 +0200)]
Issue #12467: warnings: fix a race condition if a warning is emitted at
shutdown, if globals()['__file__'] is None.