Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | calculate_path() decodes the PYTHONPATH environment variable from the locale | Victor Stinner | 2011-06-20 | 1 | -7/+9 |
| | | | | | | encoding using _Py_char2wchar() instead of mbstowcs() to store undecodable bytes as surrogates characters (PEP 383) instead of ignoring silently the PYTHONPATH variable. | ||||
* | (Merge 3.2) posixmodule.c: fix function name in argument parsing | Victor Stinner | 2011-06-17 | 1 | -9/+9 |
|\ | | | | | | | | | | | Fix os.fchown() and os.open() Remove also trailing spaces and replace tabs by spaces. | ||||
| * | posixmodule.c: fix function name in argument parsing | Victor Stinner | 2011-06-17 | 1 | -22/+22 |
| | | | | | | | | | | | | Fix os.fchown() and os.open() Remove also trailing spaces and replace tabs by spaces. | ||||
* | | Merge 3.2 - update to the fix for #12084 | Brian Curtin | 2011-06-14 | 1 | -10/+11 |
|\ \ | |/ | |||||
| * | Correct completely broken os.stat behavior on Windows XP. | Brian Curtin | 2011-06-14 | 1 | -10/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
| * | branch merge? | Brian Curtin | 2011-06-13 | 1 | -0/+40 |
| |\ | |||||
* | \ | branch merge | Brian Curtin | 2011-06-13 | 1 | -95/+142 |
|\ \ \ | |||||
| * \ \ | Merge from 3.2 for Issue #12084. | Brian Curtin | 2011-06-13 | 1 | -95/+142 |
| |\ \ \ | | |/ / | |||||
| | * | | Fix #12084. os.stat on Windows wasn't working properly with relative symlinks. | Brian Curtin | 2011-06-13 | 1 | -96/+143 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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). | ||||
* | | | | Issue #12287: In ossaudiodev, check that the device isn't closed in several | Charles-François Natali | 2011-06-11 | 1 | -0/+91 |
| | | | | | | | | | | | | | | | | methods. | ||||
* | | | | Issue #9344: Add os.getgrouplist(). | Ross Lagerwall | 2011-06-10 | 1 | -0/+67 |
| | | | | |||||
* | | | | Issue #8407: signal.sigwait() releases the GIL | Victor Stinner | 2011-06-09 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | Initial patch by Charles-François Natali. | ||||
* | | | | Merge 3.2 | Brian Curtin | 2011-06-09 | 1 | -1/+4 |
|\ \ \ \ | | |_|/ | |/| | | |||||
| * | | | Correction to 88e318166eaf - Issue #11583 | Brian Curtin | 2011-06-09 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | Rather than wrapping the C _isdir function in a Python function, just import the C _isdir function directly. Additionally, add in the docstring which was left out. | ||||
* | | | | Fix #11583. Changed os.path.isdir to use GetFileAttributes instead of os.stat. | Brian Curtin | 2011-06-08 | 1 | -0/+37 |
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By changing to the Windows GetFileAttributes API in nt._isdir we can figure out if the path is a directory without opening the file via os.stat. This has the minor benefit of speeding up os.path.isdir by at least 2x for regular files and 10-15x improvements were seen on symbolic links (which opened the file multiple times during os.stat). Since os.path.isdir is used in several places on interpreter startup, we get a minor speedup in startup time. | ||||
| * | | | Fix #11583. Changed os.path.isdir to use GetFileAttributes instead of os.stat. | Brian Curtin | 2011-06-08 | 1 | -0/+37 |
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | By changing to the Windows GetFileAttributes API in nt._isdir we can figure out if the path is a directory without opening the file via os.stat. This has the minor benefit of speeding up os.path.isdir by at least 2x for regular files and 10-15x improvements were seen on symbolic links (which opened the file multiple times during os.stat). Since os.path.isdir is used in several places on interpreter startup, we get a minor speedup in startup time. | ||||
* | | | Issue #12021: Make mmap's read() method argument optional. Patch by Petri | Charles-François Natali | 2011-06-08 | 1 | -2/+24 |
| | | | | | | | | | | | | Lehtinen. | ||||
* | | | Issue #9205: concurrent.futures.ProcessPoolExecutor now detects killed | Antoine Pitrou | 2011-06-08 | 1 | -16/+374 |
| | | | | | | | | | | | | | | | children and raises BrokenProcessPool in such a situation. Previously it would reliably freeze/deadlock. | ||||
* | | | Revert a reversed comparison order introduced in r70695. | Brett Cannon | 2011-06-08 | 1 | -1/+1 |
| | | | |||||
* | | | Remove a redundant assignment. | Brett Cannon | 2011-06-07 | 1 | -1/+1 |
| | | | | | | | | | | | | Found by LLVM/clang 2.9. | ||||
* | | | Checking if an unsigned long is < 0 is pointless. | Brett Cannon | 2011-06-07 | 1 | -3/+3 |
| | | | | | | | | | | | | Found by LLVM/clang 2.9. | ||||
* | | | Remove some extraneous parentheses and swap the comparison order to | Brett Cannon | 2011-06-07 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | prevent accidental assignment. Silences a warning from LLVM/clang 2.9. | ||||
* | | | Issue #12196: Make os.pipe2() flags argument mandatory. | Charles-François Natali | 2011-06-06 | 1 | -8/+9 |
| |/ |/| | |||||
* | | always clear parser error | Benjamin Peterson | 2011-06-06 | 1 | -1/+1 |
| | | |||||
* | | merge heads. | Gregory P. Smith | 2011-06-05 | 20 | -133/+288 |
|\ \ | |||||
| * | | only clear the parser error if it's set (closes #12264) | Benjamin Peterson | 2011-06-05 | 1 | -2/+3 |
| | | | |||||
| * | | (Merge 3.2) Issue #12016: Reindent decoders of HK and JP codecs | Victor Stinner | 2011-06-03 | 2 | -51/+52 |
| |\ \ | | |/ | |||||
| | * | Issue #12016: Reindent decoders of HK and JP codecs | Victor Stinner | 2011-06-03 | 2 | -51/+52 |
| | | | |||||
| * | | Merge 3.2 | Éric Araujo | 2011-06-01 | 1 | -1/+1 |
| |\ \ | | |/ | |||||
| | * | Branch merge | Éric Araujo | 2011-06-01 | 1 | -1/+1 |
| | |\ | |||||
| | | * | Fix error message to use the Python name instead of the C name | Éric Araujo | 2011-05-31 | 1 | -1/+1 |
| | | | | |||||
| | * | | merge 3.1 | Benjamin Peterson | 2011-06-01 | 1 | -1/+1 |
| | |\ \ | |||||
| | | * | | return NULL on error | Benjamin Peterson | 2011-06-01 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | merge 3.2 | Benjamin Peterson | 2011-06-01 | 1 | -0/+2 |
| |\ \ \ \ | | |/ / / | |||||
| | * | | | be extra careful with a borrowed reference when the GIL could be released ↵ | Benjamin Peterson | 2011-06-01 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | (closes #8578) | ||||
| * | | | | remove __version__s dependent on subversion keyword expansion (closes #12221) | Benjamin Peterson | 2011-06-01 | 1 | -5/+0 |
| | | | | | |||||
| * | | | | merge 3.2 (#12221) | Benjamin Peterson | 2011-06-01 | 1 | -21/+5 |
| |\ \ \ \ | | |/ / / | |||||
| | * | | | merge 3.1 (#12221) | Benjamin Peterson | 2011-06-01 | 1 | -21/+5 |
| | |\ \ \ | | | |/ / | | | | / | | | |/ | | |/| | |||||
| | | * | simply use the Python version for pyexpat.__version__ #12221 | Benjamin Peterson | 2011-05-31 | 1 | -21/+5 |
| | | | | |||||
| | * | | Issue #12090: backport 79fcd71d0356 | Stefan Krah | 2011-05-25 | 1 | -0/+6 |
| | | | | |||||
| * | | | Close #12229: Remove an unused argument of _bufferedreader_peek_unlocked(), | Victor Stinner | 2011-05-31 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | io.BufferedReader._peek_unlocked(). Patch written by John O'Connor. | ||||
| * | | | Close #12171: IncrementalEncoder.reset() of CJK codecs (multibytecodec) calls | Victor Stinner | 2011-05-30 | 1 | -4/+10 |
| | | | | | | | | | | | | | | | | encreset() instead of decreset(). | ||||
| * | | | Issue #12196: Add pipe2() to the os module. | Charles-François Natali | 2011-05-29 | 1 | -0/+28 |
| | | | | |||||
| * | | | _posixsubprocess.c: don't redefine _GNU_SOURCE if it's already defined | Victor Stinner | 2011-05-26 | 1 | -2/+2 |
| | | | | |||||
| * | | | socket.sendto(): exit directly after setting the error | Victor Stinner | 2011-05-26 | 1 | -4/+5 |
| | | | | | | | | | | | | | | | | Dummy change to avoid a false positive with the Clang Static Analyzer. | ||||
| * | | | zipimport: initialize fullpath to NULL | Victor Stinner | 2011-05-26 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | In some cases, fullpath value is used whereas fullpath was not always initialized. Warning found by the Clang Static Analyzer. | ||||
| * | | | Remove useless assignments | Victor Stinner | 2011-05-26 | 1 | -5/+4 |
| | | | | | | | | | | | | | | | | Warnings found by the the Clang Static Analyzer. | ||||
| * | | | Issue #12175: BufferedReader.read(-1) now calls raw.readall() if available. | Victor Stinner | 2011-05-25 | 3 | -11/+40 |
| | | | | |||||
| * | | | Issue #12175: FileIO.readall() now only reads the file position and size once. | Victor Stinner | 2011-05-25 | 1 | -7/+30 |
| | | | | |||||
| * | | | (Merge 3.2) Issue #12175: RawIOBase.readall() now returns None if read() | Victor Stinner | 2011-05-25 | 1 | -0/+8 |
| |\ \ \ | | |/ / | | | | | | | | | returns None. |