]> granicus.if.org Git - python/log
python
13 years agoIssue #12363: improve siginterrupt() tests
Victor Stinner [Fri, 1 Jul 2011 13:24:50 +0000 (15:24 +0200)]
Issue #12363: improve siginterrupt() tests

Backport commits 968b9ff9a059 and aff0a7b0cb12 from the default branch to 3.2
branch. Extract of the changelog messages:

"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"

and

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

I replaced .communicate(timeout=3.0) by an explicit waiting loop using
Popen.poll().

13 years agoIssue #11870: Skip test_threading.test_2_join_in_forked_process() on platforms
Victor Stinner [Fri, 1 Jul 2011 12:26:24 +0000 (14:26 +0200)]
Issue #11870: Skip test_threading.test_2_join_in_forked_process() on platforms
with known OS bugs

Share the list of platforms with known OS bugs with other tests. Patch written
by Charles-François Natali.

13 years agotest_os: remove now useless TemporaryFileTests testcase
Victor Stinner [Fri, 1 Jul 2011 11:45:30 +0000 (13:45 +0200)]
test_os: remove now useless TemporaryFileTests testcase

TemporaryFileTests has tests for os.tempnam() and os.tmpfile(), functions
removed from Python 3.

Move fdopen() tests to the FileTests testcase to test fdopen() on a file
descriptor, not on a directory descriptor (which raises an error on Windows).

13 years agolibpython.py (gdb) now catchs IOError in py-list and py-bt commands
Victor Stinner [Fri, 1 Jul 2011 10:57:44 +0000 (12:57 +0200)]
libpython.py (gdb) now catchs IOError in py-list and py-bt commands

py-list displays the error. py-bt ignores the error (the filename and line
number is already displayed).

13 years agotest_os: add TemporaryFileTests to the testcase list
Victor Stinner [Fri, 1 Jul 2011 00:56:15 +0000 (02:56 +0200)]
test_os: add TemporaryFileTests to the testcase list

The testcase was never executed, it's now fixed.

13 years agoIssue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.
Antoine Pitrou [Thu, 30 Jun 2011 18:02:54 +0000 (20:02 +0200)]
Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.

13 years agoIssue #12451: Open files in binary mode in some tests when the text file is not
Victor Stinner [Thu, 30 Jun 2011 16:20:11 +0000 (18:20 +0200)]
Issue #12451: Open files in binary mode in some tests when the text file is not
needed.

Remove also an unused variable (blank) in test_threading.

13 years agoIssue #12451: The XInclude default loader of xml.etree now decodes files from
Victor Stinner [Thu, 30 Jun 2011 16:10:14 +0000 (18:10 +0200)]
Issue #12451: The XInclude default loader of xml.etree now decodes files from
UTF-8 instead of the locale encoding if the encoding is not specified. It now
also opens XML files for the parser in binary mode instead of the text mode to
avoid encoding issues.

13 years agoIssue #12451: doctest.debug_script() doesn't create a temporary file anymore to
Victor Stinner [Thu, 30 Jun 2011 15:35:55 +0000 (17:35 +0200)]
Issue #12451: doctest.debug_script() doesn't create a temporary file anymore to
avoid encoding issues (it used the locale encoding, whereas UTF-8 should be).

Remove also an unused import (warnings).

13 years agoIssue #12451: pydoc.synopsis() now reads the encoding cookie if available, to
Victor Stinner [Thu, 30 Jun 2011 13:55:43 +0000 (15:55 +0200)]
Issue #12451: pydoc.synopsis() now reads the encoding cookie if available, to
read the Python script from the right encoding.

13 years agoIssue #12451: distutils now opens the setup script in binary mode to read the
Victor Stinner [Thu, 30 Jun 2011 13:40:22 +0000 (15:40 +0200)]
Issue #12451: distutils now opens the setup script in binary mode to read the
encoding cookie, instead of opening it in UTF-8.

13 years agoIssue #12400: regrtest.runtest() uses stream.seek(0) before .truncate()
Victor Stinner [Wed, 29 Jun 2011 18:01:29 +0000 (20:01 +0200)]
Issue #12400: regrtest.runtest() uses stream.seek(0) before .truncate()

.truncate(0) doesn't rewind.

13 years agoIssue #12400: test_zipimport_support doesn't restore original sys.stdout
Victor Stinner [Wed, 29 Jun 2011 16:11:36 +0000 (18:11 +0200)]
Issue #12400: test_zipimport_support doesn't restore original sys.stdout
anymore

regrtest doesn't check that a test doesn't output anything anymore.

13 years agoIssue #12400: runtest() truncates the StringIO stream before a new test
Victor Stinner [Wed, 29 Jun 2011 15:26:38 +0000 (17:26 +0200)]
Issue #12400: runtest() truncates the StringIO stream before a new test

13 years agoIssue #12400: Add missing import (os) to test_kqueue
Victor Stinner [Wed, 29 Jun 2011 15:20:02 +0000 (17:20 +0200)]
Issue #12400: Add missing import (os) to test_kqueue

13 years agoIssue #12400: test.support.run_doctest() doesn't change sys.stdout anymore
Victor Stinner [Wed, 29 Jun 2011 13:52:46 +0000 (15:52 +0200)]
Issue #12400: test.support.run_doctest() doesn't change sys.stdout anymore

regrtest doesn't check that tests doesn't write something to stdout anymore.

Don't replace sys.stdout by the original sys.stdout to be able to capture the
output for regrtest -W.

13 years agoIssue #12400: regrtest, force verbose mode to True with option -W
Victor Stinner [Wed, 29 Jun 2011 13:34:48 +0000 (15:34 +0200)]
Issue #12400: regrtest, force verbose mode to True with option -W

If verbose is False, the output is empty. Fix also a typo in a variable name.

13 years agoIssue #12400: runtest() reuses the same io.StringIO instance for all calls
Victor Stinner [Wed, 29 Jun 2011 13:22:26 +0000 (15:22 +0200)]
Issue #12400: runtest() reuses the same io.StringIO instance for all calls

 * Don't force verbose to True with option -W
 * Rename rerun_failed variable to output_on_failure

13 years agoIssue #12400: don't use sys.stderr in test_kqueue because it may be replaced by
Victor Stinner [Wed, 29 Jun 2011 12:59:10 +0000 (14:59 +0200)]
Issue #12400: don't use sys.stderr in test_kqueue because it may be replaced by
a io.StringIO object by regrtest (which has no file descriptor).

13 years agoIssue #12400: remove unused variable
Victor Stinner [Wed, 29 Jun 2011 11:24:28 +0000 (13:24 +0200)]
Issue #12400: remove unused variable

13 years agoIssue #12400: regrtest -W doesn't rerun the tests twice anymore, but captures
Victor Stinner [Wed, 29 Jun 2011 11:00:54 +0000 (13:00 +0200)]
Issue #12400: regrtest -W doesn't rerun the tests twice anymore, but captures
the output and displays it on failure instead. regrtest -v doesn't print the
error twice anymore if there is only one error.

13 years agoMerge 3.2
Ned Deily [Wed, 29 Jun 2011 03:19:36 +0000 (20:19 -0700)]
Merge 3.2

13 years agoIssue #9516: Update Misc/NEWS.
Ned Deily [Wed, 29 Jun 2011 02:51:30 +0000 (19:51 -0700)]
Issue #9516: Update Misc/NEWS.

13 years agomerge 3.1
Benjamin Peterson [Wed, 29 Jun 2011 02:49:40 +0000 (21:49 -0500)]
merge 3.1

13 years agoIssue #9516: Change distutils to no longer globally attempt to check and
Ned Deily [Wed, 29 Jun 2011 02:44:24 +0000 (19:44 -0700)]
Issue #9516: Change distutils to no longer globally attempt to check and
set the MACOSX_DEPLOYMENT_TARGET env variable for the interpreter process
on OS X.  This could cause failures in non-distutils subprocesses and was
unreliable since tests or user programs could modify the interpreter
environment after distutils set it.  Instead, have distutils set the
the deployment target only in the environment of each build subprocess.

Continue to use the previous algorithm for deriving the deployment target
value:
    if MACOSX_DEPLOYMENT_TARGET is not set in the interpreter's env:
        use the interpreter build configure MACOSX_DEPLOYMENT_TARGET
    elif the MACOSX_DEPLOYMENT_TARGET env value >= configure value:
        use the env MACOSX_DEPLOYMENT_TARGET
    else: # env value less than interpreter build configure value
        raise exception
This allows building extensions that can only run on newer versions of
the OS than the version python was built for, for example with a python
built for 10.3 or later and an extension that needs to be built for 10.5.

13 years agoIssue #9516: Correct and expand OS X deployment target tests in distutils
Ned Deily [Wed, 29 Jun 2011 02:43:15 +0000 (19:43 -0700)]
Issue #9516: Correct and expand OS X deployment target tests in distutils
test_build_ext.

13 years agoIssue #12141: Install a copy of template C module file so that
Ned Deily [Tue, 28 Jun 2011 07:42:50 +0000 (00:42 -0700)]
Issue #12141: Install a copy of template C module file so that
test_build_ext of test_distutils is no longer silently skipped when
run outside of a build directory.

13 years agoIssue #8746: Correct faulty configure checks so that os.chflags() and
Ned Deily [Tue, 28 Jun 2011 07:00:28 +0000 (00:00 -0700)]
Issue #8746: Correct faulty configure checks so that os.chflags() and
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X).  Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED).  Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)

13 years agoIssue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
Ned Deily [Tue, 28 Jun 2011 06:12:20 +0000 (23:12 -0700)]
Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
on Mac OS X.  (Patch by Ronald Oussoren)

13 years agofix ws
Benjamin Peterson [Mon, 27 Jun 2011 22:51:18 +0000 (17:51 -0500)]
fix ws

13 years agoadd more ast tests (closes #11302)
Benjamin Peterson [Mon, 27 Jun 2011 22:46:06 +0000 (17:46 -0500)]
add more ast tests (closes #11302)

A patch from Vincent Legoll.

13 years agoFix closes Issue12385 - Clarify maketrans method docstring for bytes and bytearray...
Senthil Kumaran [Mon, 27 Jun 2011 16:06:45 +0000 (09:06 -0700)]
Fix closes Issue12385 - Clarify maketrans method docstring for bytes and bytearray object.

13 years agostrip trailing ws
Benjamin Peterson [Mon, 27 Jun 2011 14:18:46 +0000 (09:18 -0500)]
strip trailing ws

13 years agomerge heads
Benjamin Peterson [Mon, 27 Jun 2011 14:16:14 +0000 (09:16 -0500)]
merge heads

13 years agoupdate profile license (closes #12417)
Benjamin Peterson [Mon, 27 Jun 2011 14:14:34 +0000 (09:14 -0500)]
update profile license (closes #12417)

13 years agoupdate profile license (closes #12417)
Benjamin Peterson [Mon, 27 Jun 2011 14:14:34 +0000 (09:14 -0500)]
update profile license (closes #12417)

13 years agoFix closes issue 11568 - update select.epoll.register docstring with mention of corre...
Senthil Kumaran [Mon, 27 Jun 2011 06:48:23 +0000 (23:48 -0700)]
Fix closes issue 11568 - update select.epoll.register docstring with mention of correct behavior.

13 years agoIssue #8890: Remove /tmp from examples.
Raymond Hettinger [Sun, 26 Jun 2011 13:29:06 +0000 (15:29 +0200)]
Issue #8890: Remove /tmp from examples.

13 years agoIssue #4608: urllib.request.urlopen does not return an iterable object
Raymond Hettinger [Sun, 26 Jun 2011 12:29:35 +0000 (14:29 +0200)]
Issue #4608: urllib.request.urlopen does not return an iterable object

13 years ago#11363: add missing functions from curses doc. Patch by Sandro Tosi.
Ezio Melotti [Sun, 26 Jun 2011 10:34:56 +0000 (13:34 +0300)]
#11363: add missing functions from curses doc. Patch by Sandro Tosi.

13 years ago#11363: clean up curses doc.
Ezio Melotti [Sun, 26 Jun 2011 10:38:11 +0000 (13:38 +0300)]
#11363: clean up curses doc.

13 years ago#11669: rephrase footnote in the Compound Statements page.
Ezio Melotti [Sun, 26 Jun 2011 08:25:28 +0000 (11:25 +0300)]
#11669: rephrase footnote in the Compound Statements page.

13 years agoUse correct markup in zipimport.rst. Patch by Sara Magliacane.
Ezio Melotti [Sat, 25 Jun 2011 16:40:06 +0000 (19:40 +0300)]
Use correct markup in zipimport.rst. Patch by Sara Magliacane.

13 years agoIssue 11802: filecmp cache was growing without bound.
Raymond Hettinger [Sat, 25 Jun 2011 15:20:21 +0000 (17:20 +0200)]
Issue 11802:  filecmp cache was growing without bound.

13 years agoIssue 12086: add example showing how to use name mangling.
Raymond Hettinger [Sat, 25 Jun 2011 14:30:39 +0000 (16:30 +0200)]
Issue 12086: add example showing how to use name mangling.

13 years agoIssue 11889: Clarify docs for enumerate.
Raymond Hettinger [Sat, 25 Jun 2011 13:00:14 +0000 (15:00 +0200)]
Issue 11889: Clarify docs for enumerate.

13 years agoIssue #12408: Fix relative import in test_future5.py. Thanks Cesare Di Mauro.
Mark Dickinson [Sat, 25 Jun 2011 11:29:14 +0000 (13:29 +0200)]
Issue #12408: Fix relative import in test_future5.py.  Thanks Cesare Di Mauro.

13 years agoMerge #12228
Mark Dickinson [Sat, 25 Jun 2011 10:04:08 +0000 (12:04 +0200)]
Merge #12228

13 years agoIssue #12228: Fix exchanged flag descriptions in stat.rst. Thanks Sandro Tosi.
Mark Dickinson [Sat, 25 Jun 2011 10:03:33 +0000 (12:03 +0200)]
Issue #12228: Fix exchanged flag descriptions in stat.rst.  Thanks Sandro Tosi.

13 years agomerge
Raymond Hettinger [Sat, 25 Jun 2011 09:50:00 +0000 (11:50 +0200)]
merge

13 years agoFix typo (reported by Hiro Ashiya).
Raymond Hettinger [Sat, 25 Jun 2011 09:39:00 +0000 (11:39 +0200)]
Fix typo (reported by Hiro Ashiya).

13 years ago#12341: add coverage files/dirs to .hgignore. Patch by Sandro Tosi.
Ezio Melotti [Sat, 25 Jun 2011 09:36:38 +0000 (12:36 +0300)]
#12341: add coverage files/dirs to .hgignore. Patch by Sandro Tosi.

13 years agoCode simplification suggested by Sven Marnach.
Raymond Hettinger [Sat, 25 Jun 2011 09:30:53 +0000 (11:30 +0200)]
Code simplification suggested by Sven Marnach.

13 years agoIssue 12404: Remove C89 incompatible code from mmap module.
Ross Lagerwall [Sat, 25 Jun 2011 08:02:37 +0000 (10:02 +0200)]
Issue 12404: Remove C89 incompatible code from mmap module.

Patch by Akira Kitada.

13 years ago#10206: add test for previously fixed bug.
R David Murray [Fri, 24 Jun 2011 17:26:31 +0000 (13:26 -0400)]
#10206: add test for previously fixed bug.

Patch by Francisco Martín Brugué.

13 years ago#9921: clarify os.path.join joining algorithm
R David Murray [Fri, 24 Jun 2011 01:26:13 +0000 (21:26 -0400)]
#9921: clarify os.path.join joining algorithm

The new wording is based on the comments in the code, which
match the actual behavior.

13 years agoIssue #11223: skip also test_rlock_acquire_interruption() on FreeBSD6
Victor Stinner [Thu, 23 Jun 2011 12:22:28 +0000 (14:22 +0200)]
Issue #11223: skip also test_rlock_acquire_interruption() on FreeBSD6

13 years agoIssue #11223: skip test_lock_acquire_interruption() on FreeBSD6
Victor Stinner [Thu, 23 Jun 2011 09:57:56 +0000 (11:57 +0200)]
Issue #11223: skip test_lock_acquire_interruption() on FreeBSD6

Locks are implemented using a mutex and a condition variable of the pthread
library on FreeBSD6. POSIX condition variables cannot be interrupted by signals
(see pthread_cond_wait manual page).

13 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.

13 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.

13 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.

13 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.

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

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

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

13 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.

13 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.

13 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.

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

13 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.

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

13 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.

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

13 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.

13 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

13 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.

13 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.

13 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.

13 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.

13 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.

13 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.

13 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

13 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.

13 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.

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

13 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)

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

13 years agoMinor wording improvement
Éric Araujo [Wed, 15 Jun 2011 15:49:20 +0000 (17:49 +0200)]
Minor wording improvement

13 years agoCorrect completely broken os.stat behavior on Windows XP.
Brian Curtin [Tue, 14 Jun 2011 14:52:50 +0000 (09:52 -0500)]
Correct completely broken os.stat behavior on Windows XP.

After 1a3e8db28d49, Windows XP could not os.stat at all due to raising
immediately when GetFinalPathNameByHandle wasn't available (pre-Vista).
The proper behavior in that situation is to just not attempt a traversal
rather than outright rejecting.

This change additionally handles a failed malloc by setting the error code
and returning false.

Patch by Hirokazu Yamamoto.

13 years agobranch merge?
Brian Curtin [Mon, 13 Jun 2011 21:10:32 +0000 (16:10 -0500)]
branch merge?

13 years agoFix #12084. os.stat on Windows wasn't working properly with relative symlinks.
Brian Curtin [Mon, 13 Jun 2011 20:16:04 +0000 (15:16 -0500)]
Fix #12084. os.stat on Windows wasn't working properly with relative symlinks.

Use of DeviceIoControl to obtain the symlink path via the reparse tag was
removed. The code now uses GetFinalPathNameByHandle in the case of a
symbolic link and works properly given the added test which creates a symbolic
link and calls os.stat on it from multiple locations.

Victor Stinner also noticed an issue with os.lstat following the os.stat
code path when being passed bytes. The posix_lstat function was adjusted to
properly hook up win32_lstat instead of the previous STAT macro (win32_stat).

13 years agoUpdated Formatter.formatTime documentation.
Vinay Sajip [Sun, 12 Jun 2011 10:44:28 +0000 (11:44 +0100)]
Updated Formatter.formatTime documentation.

13 years agoIssue #12206: documentation for LogRecord constructor updated re. the level argument.
Vinay Sajip [Sat, 11 Jun 2011 22:03:37 +0000 (23:03 +0100)]
Issue #12206: documentation for LogRecord constructor updated re. the level argument.

13 years agoallow "fake" filenames in findsource (closes #9284)
Benjamin Peterson [Sat, 11 Jun 2011 20:53:11 +0000 (15:53 -0500)]
allow "fake" filenames in findsource (closes #9284)

This allows findsource() to work in doctests.

A patch from Dirkjan Ochtman.

13 years agoonto 3.1.5
Benjamin Peterson [Sat, 11 Jun 2011 16:33:01 +0000 (11:33 -0500)]
onto 3.1.5

13 years agoAdded tag v3.1.4 for changeset c918ec9f3a76
Benjamin Peterson [Sat, 11 Jun 2011 14:59:17 +0000 (09:59 -0500)]
Added tag v3.1.4 for changeset c918ec9f3a76

13 years agobump to 3.1.4 v3.1.4
Benjamin Peterson [Sat, 11 Jun 2011 14:58:58 +0000 (09:58 -0500)]
bump to 3.1.4

13 years agoAdd missing reST target to one heading in the tutorial
Éric Araujo [Sat, 11 Jun 2011 08:34:19 +0000 (10:34 +0200)]
Add missing reST target to one heading in the tutorial

13 years agomerge 3.1
Benjamin Peterson [Sat, 11 Jun 2011 16:34:31 +0000 (11:34 -0500)]
merge 3.1

13 years agomerge 3.1
Benjamin Peterson [Sat, 11 Jun 2011 15:01:14 +0000 (10:01 -0500)]
merge 3.1