]> granicus.if.org Git - python/log
python
14 years agoPackaging cleanup: normalize print calls.
Éric Araujo [Wed, 8 Jun 2011 02:10:57 +0000 (04:10 +0200)]
Packaging cleanup: normalize print calls.

Namely: use default arguments instead of explicit empty string; use multiple
arguments instead of building strings.

14 years agoPackaging cleanup: remove use of script_name where obsolete
Éric Araujo [Wed, 8 Jun 2011 02:06:50 +0000 (04:06 +0200)]
Packaging cleanup: remove use of script_name where obsolete

14 years agoKill dead code in importlib.test.__main__ (#12019, reviewed by Brett Cannon)
Éric Araujo [Tue, 7 Jun 2011 15:58:50 +0000 (17:58 +0200)]
Kill dead code in importlib.test.__main__ (#12019, reviewed by Brett Cannon)

14 years agoBranch merge: packaging fixes
Éric Araujo [Tue, 7 Jun 2011 15:31:39 +0000 (17:31 +0200)]
Branch merge: packaging fixes

14 years ago#12274: use proper escaping for % in IDLE config (merged from 3.2).
Łukasz Langa [Tue, 7 Jun 2011 13:20:51 +0000 (15:20 +0200)]
#12274: use proper escaping for % in IDLE config (merged from 3.2).

14 years ago#12274: use proper escaping for % in IDLE config.
Łukasz Langa [Tue, 7 Jun 2011 13:19:44 +0000 (15:19 +0200)]
#12274: use proper escaping for % in IDLE config.

14 years ago(Merge 3.2) test.support: don't catch OSError when can_symlink() removes the
Victor Stinner [Tue, 7 Jun 2011 10:19:34 +0000 (12:19 +0200)]
(Merge 3.2) test.support: don't catch OSError when can_symlink() removes the
temporary symbolic link.

14 years agotest.support: can_symlink() removes the temporary symbolic link
Victor Stinner [Tue, 7 Jun 2011 10:17:15 +0000 (12:17 +0200)]
test.support: can_symlink() removes the temporary symbolic link

14 years agoRemove a redundant assignment.
Brett Cannon [Tue, 7 Jun 2011 03:24:11 +0000 (20:24 -0700)]
Remove a redundant assignment.

Found by LLVM/clang 2.9.

14 years agoChecking if an unsigned long is < 0 is pointless.
Brett Cannon [Tue, 7 Jun 2011 03:22:56 +0000 (20:22 -0700)]
Checking if an unsigned long is < 0 is pointless.

Found by LLVM/clang 2.9.

14 years agoRemove some extraneous parentheses and swap the comparison order to
Brett Cannon [Tue, 7 Jun 2011 03:20:36 +0000 (20:20 -0700)]
Remove some extraneous parentheses and swap the comparison order to
prevent accidental assignment.

Silences a warning from LLVM/clang 2.9.

14 years agoWhen building sqlite3, the directory where sqlite.h was found was
Brett Cannon [Tue, 7 Jun 2011 03:09:10 +0000 (20:09 -0700)]
When building sqlite3, the directory where sqlite.h was found was
always appended to the include directories regardless of whether it
was already in the list of directories. This could cause issue if
sqlite was installed in the same location as another install of
Python. Now a check is done to make sure the directory is not included
twice.

14 years agoUse a sleep for test_subprocess timeout test
Victor Stinner [Mon, 6 Jun 2011 21:43:02 +0000 (23:43 +0200)]
Use a sleep for test_subprocess timeout test

instead of an active loop (while True: pass) to limit race conditions.

14 years agoFix UnboundLocalError in a finally block of one packaging test
Éric Araujo [Mon, 6 Jun 2011 20:24:19 +0000 (22:24 +0200)]
Fix UnboundLocalError in a finally block of one packaging test

14 years agoFix sdist to always include setup.cfg (#11092), to comply with the spec
Éric Araujo [Mon, 6 Jun 2011 19:55:43 +0000 (21:55 +0200)]
Fix sdist to always include setup.cfg (#11092), to comply with the spec

14 years agoUse strings instead of sets of lines in packaging.create tests.
Éric Araujo [Mon, 6 Jun 2011 18:59:56 +0000 (20:59 +0200)]
Use strings instead of sets of lines in packaging.create tests.

Using sets in tests did not check whether the values were written in the right
section or with the right key.

14 years agoFix comment
Éric Araujo [Mon, 6 Jun 2011 18:28:13 +0000 (20:28 +0200)]
Fix comment

14 years agoUpdate comments in sysconfig.cfg
Éric Araujo [Mon, 6 Jun 2011 18:07:04 +0000 (20:07 +0200)]
Update comments in sysconfig.cfg

14 years agoFix documentation of requires-python field in setup.cfg (#11041)
Éric Araujo [Mon, 6 Jun 2011 17:57:02 +0000 (19:57 +0200)]
Fix documentation of requires-python field in setup.cfg (#11041)

14 years agoIssue #12196: Make os.pipe2() flags argument mandatory.
Charles-François Natali [Mon, 6 Jun 2011 17:49:47 +0000 (19:49 +0200)]
Issue #12196: Make os.pipe2() flags argument mandatory.

14 years agoWhitespace normalization
Antoine Pitrou [Mon, 6 Jun 2011 17:36:01 +0000 (19:36 +0200)]
Whitespace normalization

14 years agoIssue #12040: Expose a new attribute `sentinel` on instances of
Antoine Pitrou [Mon, 6 Jun 2011 17:35:31 +0000 (19:35 +0200)]
Issue #12040: Expose a new attribute `sentinel` on instances of
:class:`multiprocessing.Process`.  Also, fix Process.join() to not use
polling anymore, when given a timeout.

14 years agoIssue #11893: Remove obsolete internal wrapper class `SSLFakeFile` in the smtplib...
Antoine Pitrou [Mon, 6 Jun 2011 17:17:09 +0000 (19:17 +0200)]
Issue #11893: Remove obsolete internal wrapper class `SSLFakeFile` in the smtplib module.
Patch by Catalin Iacob.

14 years agoMerge 3.2
Éric Araujo [Mon, 6 Jun 2011 15:13:08 +0000 (17:13 +0200)]
Merge 3.2

14 years agoBranch merge
Éric Araujo [Mon, 6 Jun 2011 15:12:29 +0000 (17:12 +0200)]
Branch merge

14 years agoBranch merge
Éric Araujo [Mon, 6 Jun 2011 15:11:47 +0000 (17:11 +0200)]
Branch merge

14 years agoRemove wsgiref.egg-info from msi.py (follow-up to d615eb7bce33, #12218)
Éric Araujo [Mon, 6 Jun 2011 15:08:41 +0000 (17:08 +0200)]
Remove wsgiref.egg-info from msi.py (follow-up to d615eb7bce33, #12218)

14 years agoIssue #12250: regrtest --timeout displays a warning instead of failing with an
Victor Stinner [Mon, 6 Jun 2011 10:14:23 +0000 (12:14 +0200)]
Issue #12250: regrtest --timeout displays a warning instead of failing with an
error if faulthandler.dump_tracebacks_later() is missing (e.g. if Python is
compiled without threads).

14 years agoIssue #12250: modify "make buildbottest" command line instead of TESTOPTS
Victor Stinner [Mon, 6 Jun 2011 10:04:36 +0000 (12:04 +0200)]
Issue #12250: modify "make buildbottest" command line instead of TESTOPTS

Add TESTTIMEOUT variable (default: 3600 seconds). Use TESTTIMEOUT=0 to disable
the timeout.
***
fix

14 years agoDrop claim about nasty problem.
Martin v. Löwis [Mon, 6 Jun 2011 08:27:56 +0000 (10:27 +0200)]
Drop claim about nasty problem.
It's unclear what this was referring to; most likely, it was about sockets
that the application had already closed, in which case it's not a sockets
problem, but an application problem.

14 years agoDrop unfounded claims about performance.
Martin v. Löwis [Mon, 6 Jun 2011 08:25:55 +0000 (10:25 +0200)]
Drop unfounded claims about performance.

14 years agoalways clear parser error
Benjamin Peterson [Mon, 6 Jun 2011 03:14:05 +0000 (22:14 -0500)]
always clear parser error

14 years agomerge heads
Benjamin Peterson [Mon, 6 Jun 2011 03:05:22 +0000 (22:05 -0500)]
merge heads

14 years agogreatly improve argument parsing error messages (closes #12265)
Benjamin Peterson [Mon, 6 Jun 2011 03:04:07 +0000 (22:04 -0500)]
greatly improve argument parsing error messages (closes #12265)

14 years agoRephrase the section about spec versioning
Éric Araujo [Mon, 6 Jun 2011 00:02:34 +0000 (02:02 +0200)]
Rephrase the section about spec versioning

14 years agoFix a few typos
Éric Araujo [Mon, 6 Jun 2011 00:00:54 +0000 (02:00 +0200)]
Fix a few typos

14 years agoMinor rework of the extensibility and acks sections
Éric Araujo [Mon, 6 Jun 2011 00:00:03 +0000 (02:00 +0200)]
Minor rework of the extensibility and acks sections

14 years agoMove a non-PEP 345 field at the end of the metadata fields list
Éric Araujo [Sun, 5 Jun 2011 23:58:54 +0000 (01:58 +0200)]
Move a non-PEP 345 field at the end of the metadata fields list

14 years agoMake example of file inclusion in setupcfg more obvious
Éric Araujo [Sun, 5 Jun 2011 23:58:25 +0000 (01:58 +0200)]
Make example of file inclusion in setupcfg more obvious

14 years agoRephrase and update intro and syntax sections of setupcfg
Éric Araujo [Mon, 6 Jun 2011 00:07:24 +0000 (02:07 +0200)]
Rephrase and update intro and syntax sections of setupcfg

14 years agoChange reST targets in setup.cfg spec.
Éric Araujo [Sun, 5 Jun 2011 23:54:54 +0000 (01:54 +0200)]
Change reST targets in setup.cfg spec.

I chose “setupcfg” as prefix instead of “packaging-setupcfg” because the scope
of the spec is not limited to packaging: it’s intended as a language-agnostic
document for packaging tools developers as well as Python authors.

14 years agoAdd a short table of contents to the setup.cfg spec.
Éric Araujo [Sun, 5 Jun 2011 23:52:37 +0000 (01:52 +0200)]
Add a short table of contents to the setup.cfg spec.

I tried shortening the sidebar ToC with the tocdepth option instead, but it has
a bug which caused all headings with a level deeper than the tocdepth value to
all have the same section number, which was a usability regression rather than
in improvement.

14 years agoUpdate doctring now that Python has real booleans
Éric Araujo [Sun, 5 Jun 2011 23:13:48 +0000 (01:13 +0200)]
Update doctring now that Python has real booleans

14 years agoDrop old UUIDs.
Martin v. Löwis [Sun, 5 Jun 2011 18:43:30 +0000 (20:43 +0200)]
Drop old UUIDs.

14 years agomerge:Do not add txt files twice
Martin v. Löwis [Sun, 5 Jun 2011 17:43:56 +0000 (19:43 +0200)]
merge:Do not add txt files twice

14 years agonull merge
Martin v. Löwis [Sun, 5 Jun 2011 17:43:03 +0000 (19:43 +0200)]
null merge

14 years agomerge:Do not add txt files twice
Martin v. Löwis [Sun, 5 Jun 2011 17:42:21 +0000 (19:42 +0200)]
merge:Do not add txt files twice

14 years agoAdd 3.1.4 UUIDs.
Martin v. Löwis [Sun, 5 Jun 2011 08:56:44 +0000 (10:56 +0200)]
Add 3.1.4 UUIDs.

14 years agoDo not add txt files twice.
Martin v. Löwis [Sun, 5 Jun 2011 08:55:57 +0000 (10:55 +0200)]
Do not add txt files twice.

14 years agoCloses issue #11557: removal of non-idiomatic code in test_logging.
Vinay Sajip [Sun, 5 Jun 2011 08:31:34 +0000 (09:31 +0100)]
Closes issue #11557: removal of non-idiomatic code in test_logging.

14 years agomerge heads.
Gregory P. Smith [Sun, 5 Jun 2011 06:05:19 +0000 (23:05 -0700)]
merge heads.

14 years agomerge heads
Benjamin Peterson [Sun, 5 Jun 2011 03:09:08 +0000 (22:09 -0500)]
merge heads

14 years agoonly clear the parser error if it's set (closes #12264)
Benjamin Peterson [Sun, 5 Jun 2011 03:06:42 +0000 (22:06 -0500)]
only clear the parser error if it's set (closes #12264)

14 years agoImprove consistency in questions asked by packaging.create.
Éric Araujo [Sat, 4 Jun 2011 20:37:57 +0000 (22:37 +0200)]
Improve consistency in questions asked by packaging.create.

I reworded “wizard” because it is a Windows-specific term.

14 years agoClean up packaging.create and add TODO notes for future cleanups
Éric Araujo [Sat, 4 Jun 2011 20:36:40 +0000 (22:36 +0200)]
Clean up packaging.create and add TODO notes for future cleanups

14 years agoMake help messages in packaging.run more consistent
Éric Araujo [Sat, 4 Jun 2011 20:33:59 +0000 (22:33 +0200)]
Make help messages in packaging.run more consistent

14 years agoCleanup in packaging: don’t unnecessarily instantiate exceptions
Éric Araujo [Sat, 4 Jun 2011 20:33:16 +0000 (22:33 +0200)]
Cleanup in packaging: don’t unnecessarily instantiate exceptions

14 years agoImprove a few docstrings in packaging.
Éric Araujo [Sat, 4 Jun 2011 20:24:59 +0000 (22:24 +0200)]
Improve a few docstrings in packaging.

Also beautify import lists.  Having them grouped by lenght makes it slightly
easier to look for a module.

14 years agoMerge ABC and distutils touch-ups from 3.2.
Éric Araujo [Sat, 4 Jun 2011 19:16:42 +0000 (21:16 +0200)]
Merge ABC and distutils touch-ups from 3.2.

I have removed the reST target I added in 38cdca2cc253: it is not necessary, as
people can link to the glossary entry or the abc module without it.

Two indentation fixes from 3.2 collections.rst have been ported to 3.3
collections.abc.rst.

14 years agoRemove unneeded executable bit on two distutils files
Éric Araujo [Sat, 4 Jun 2011 18:47:26 +0000 (20:47 +0200)]
Remove unneeded executable bit on two distutils files

14 years agoBranch merge
Éric Araujo [Sat, 4 Jun 2011 18:37:16 +0000 (20:37 +0200)]
Branch merge

14 years agoIssue #12080: Fix a performance issue in Decimal._power_exact that causes some corner...
Mark Dickinson [Sat, 4 Jun 2011 17:14:23 +0000 (18:14 +0100)]
Issue #12080: Fix a performance issue in Decimal._power_exact that causes some corner-case Decimal.__pow__ calls to take an unreasonably long time.

14 years agoAdd reST target for Doc/packaging/setupcfg
Éric Araujo [Sat, 4 Jun 2011 16:46:25 +0000 (18:46 +0200)]
Add reST target for Doc/packaging/setupcfg

14 years agoUse list constructor or built-in method instead of copy module
Éric Araujo [Sat, 4 Jun 2011 16:45:40 +0000 (18:45 +0200)]
Use list constructor or built-in method instead of copy module

14 years agoImprove glossary entry for ABCs.
Éric Araujo [Sat, 4 Jun 2011 16:42:38 +0000 (18:42 +0200)]
Improve glossary entry for ABCs.

- Rename reST target name for collections ABCs to avoid collisions
- Add link to importlib ABCs (collections, numbers and io ABCs were already
  linked)
- Link to glossary entry from numbers module doc (other modules already do it)

14 years agoAdd missing section of doc file lost among repositories and conversions
Éric Araujo [Sat, 4 Jun 2011 00:31:14 +0000 (02:31 +0200)]
Add missing section of doc file lost among repositories and conversions

14 years agomerge heads
Benjamin Peterson [Fri, 3 Jun 2011 22:50:59 +0000 (17:50 -0500)]
merge heads

14 years agosome horrible preprocessing tricks to automatically update the tag
Benjamin Peterson [Fri, 3 Jun 2011 22:50:16 +0000 (17:50 -0500)]
some horrible preprocessing tricks to automatically update the tag

14 years ago(Merge 3.2) Issue #12016: Add test_errorhandle() to TestBase_Mapping of
Victor Stinner [Fri, 3 Jun 2011 21:45:03 +0000 (23:45 +0200)]
(Merge 3.2) Issue #12016: Add test_errorhandle() to TestBase_Mapping of
test_multibytecodec_support. Improve also error message of the
test_errorhandle() of TestBase.

14 years agoIssue #12016: Add test_errorhandle() to TestBase_Mapping of
Victor Stinner [Fri, 3 Jun 2011 21:44:39 +0000 (23:44 +0200)]
Issue #12016: Add test_errorhandle() to TestBase_Mapping of
test_multibytecodec_support. Improve also error message of the
test_errorhandle() of TestBase.

14 years ago(Merge 3.2) Issue #12016: Reindent decoders of HK and JP codecs
Victor Stinner [Fri, 3 Jun 2011 21:34:32 +0000 (23:34 +0200)]
(Merge 3.2) Issue #12016: Reindent decoders of HK and JP codecs

14 years agoIssue #12016: Reindent decoders of HK and JP codecs
Victor Stinner [Fri, 3 Jun 2011 21:34:09 +0000 (23:34 +0200)]
Issue #12016: Reindent decoders of HK and JP codecs

14 years agorun autoconf
Benjamin Peterson [Fri, 3 Jun 2011 19:38:24 +0000 (14:38 -0500)]
run autoconf

14 years agoremove AC_REVISION
Benjamin Peterson [Fri, 3 Jun 2011 19:22:48 +0000 (14:22 -0500)]
remove AC_REVISION

14 years agoPoint to new collections.abc module for collections ABCs
Éric Araujo [Fri, 3 Jun 2011 18:49:39 +0000 (20:49 +0200)]
Point to new collections.abc module for collections ABCs

14 years agoRemove link that’s already present at the top of the file
Éric Araujo [Fri, 3 Jun 2011 18:43:42 +0000 (20:43 +0200)]
Remove link that’s already present at the top of the file

14 years agoMerge #12249 fix from 3.2
Éric Araujo [Fri, 3 Jun 2011 17:27:16 +0000 (19:27 +0200)]
Merge #12249 fix from 3.2

14 years agoDocument working dir for “make html” (#12249). Patch by Tshepang Lekhonkhobe.
Éric Araujo [Fri, 3 Jun 2011 17:25:58 +0000 (19:25 +0200)]
Document working dir for “make html” (#12249).  Patch by Tshepang Lekhonkhobe.

14 years agoFix reST label for collections ABCs.
Éric Araujo [Fri, 3 Jun 2011 17:18:41 +0000 (19:18 +0200)]
Fix reST label for collections ABCs.

The previous markup hijacked the abstract-base-classes glossary entry,
which resulted in the HTML linking to collections.abc when defining the
generic ABC concept.  Now the glossary links to the abc module.

14 years agoDocument autoflushing in packaging.test.support.LoggingCatcher.get_logs.
Éric Araujo [Fri, 3 Jun 2011 15:28:23 +0000 (17:28 +0200)]
Document autoflushing in packaging.test.support.LoggingCatcher.get_logs.

I’m afraid my docstring is not as clear as it should be, but I can’t
find a concise way of describing what the code does.  Suggestions for
improvements welcome.

14 years agoAdd NEWS and whatsnew entries for the packaging module
Éric Araujo [Fri, 3 Jun 2011 15:26:59 +0000 (17:26 +0200)]
Add NEWS and whatsnew entries for the packaging module

14 years agoMerge.
Charles-François Natali [Fri, 3 Jun 2011 10:57:49 +0000 (12:57 +0200)]
Merge.

14 years agoIssue #12196: Make test.support's requires_linux_version a decorator.
Charles-François Natali [Fri, 3 Jun 2011 10:55:15 +0000 (12:55 +0200)]
Issue #12196: Make test.support's requires_linux_version a decorator.

14 years agoClose #12250: Disable the regrtest timeout by default
Victor Stinner [Fri, 3 Jun 2011 10:53:26 +0000 (12:53 +0200)]
Close #12250: Disable the regrtest timeout by default

Keep a timeout of 1 hour for buildbots.

14 years agomerge
Raymond Hettinger [Fri, 3 Jun 2011 06:49:44 +0000 (23:49 -0700)]
merge

14 years agoFix named tuples to work with vars().
Raymond Hettinger [Fri, 3 Jun 2011 06:40:24 +0000 (23:40 -0700)]
Fix named tuples to work with vars().

14 years agoMerge packaging doc fix
Éric Araujo [Thu, 2 Jun 2011 14:43:25 +0000 (16:43 +0200)]
Merge packaging doc fix

14 years agoPackaging doc: Add missing index file, improve main page description.
Éric Araujo [Thu, 2 Jun 2011 13:45:25 +0000 (15:45 +0200)]
Packaging doc: Add missing index file, improve main page description.

Also promote notices from distutils doc to deprecation boxes.

14 years agoFix format of warnings from the packaging check command
Éric Araujo [Thu, 2 Jun 2011 12:54:44 +0000 (14:54 +0200)]
Fix format of warnings from the packaging check command

14 years agoMake packaging.tests.support.LoggingCatcher.get_logs flush the log handler.
Éric Araujo [Thu, 2 Jun 2011 12:53:59 +0000 (14:53 +0200)]
Make packaging.tests.support.LoggingCatcher.get_logs flush the log handler.

This removes the need to call flush manually in each test, except when
testing code that creates warning without checking them.

14 years agoadded the generate-setup action
Tarek Ziade [Thu, 2 Jun 2011 10:00:44 +0000 (12:00 +0200)]
added the generate-setup action

14 years agothis documentation is now handled by all the new packaging contributors
Tarek Ziade [Thu, 2 Jun 2011 09:28:07 +0000 (11:28 +0200)]
this documentation is now handled by all the new packaging contributors

14 years agomerge
Raymond Hettinger [Wed, 1 Jun 2011 23:18:00 +0000 (16:18 -0700)]
merge

14 years agoForward port doc updates for builtin functions.
Raymond Hettinger [Wed, 1 Jun 2011 23:17:23 +0000 (16:17 -0700)]
Forward port doc updates for builtin functions.

14 years agoKill trailing whitespace
Éric Araujo [Wed, 1 Jun 2011 18:44:40 +0000 (20:44 +0200)]
Kill trailing whitespace

14 years agoAdd documentation for the packaging module.
Éric Araujo [Wed, 1 Jun 2011 18:42:49 +0000 (20:42 +0200)]
Add documentation for the packaging module.

This updates the user guide to refer to Packaging instead of Distutils.
Some files still require an update.

14 years agoIssue #12196: Add a note on os.pipe2() in the "Whats' new in Python 3.3"
Charles-François Natali [Wed, 1 Jun 2011 18:30:52 +0000 (20:30 +0200)]
Issue #12196: Add a note on os.pipe2() in the "Whats' new in Python 3.3"
document.

14 years agoMerge 3.2
Éric Araujo [Wed, 1 Jun 2011 17:47:24 +0000 (19:47 +0200)]
Merge 3.2

14 years agoBranch merge
Éric Araujo [Wed, 1 Jun 2011 17:47:06 +0000 (19:47 +0200)]
Branch merge

14 years agoRemove duplicate entry for Josip
Éric Araujo [Wed, 1 Jun 2011 17:41:21 +0000 (19:41 +0200)]
Remove duplicate entry for Josip