| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| | |
given as a low fd, it gets overwritten.
|
|\ \
| |/
| |
| |
| | |
a read1() method), and add a *write_through* parameter to
mandate unbuffered writes.
|
| |
| |
| |
| |
| | |
a read1() method), and add an undocumented *write_through* parameter to
mandate unbuffered writes.
|
| |
| |
| |
| |
| |
| |
| |
| | |
to get channel binding data for the current SSL session (only the
"tls-unique" channel binding is implemented). This allows the
implementation of certain authentication mechanisms such as SCRAM-SHA-1-PLUS.
Patch by Jacek Konieczny.
|
|\ \
| |/
| |
| |
| | |
signature. Without this, architectures where sizeof void* != sizeof int are
broken. Patch given by Hallvard B Furuseth.
|
| |
| |
| |
| |
| | |
signature. Without this, architectures where sizeof void* != sizeof int are
broken. Patch given by Hallvard B Furuseth.
|
|\ \
| |/
| |
| | |
embedding Python. Patch by Andreas Stührk.
|
| |
| |
| |
| | |
embedding Python. Patch by Andreas Stührk.
|
| |
| |
| |
| | |
Patch by Iñigo Serna.
|
| |
| |
| |
| | |
Call the previous signal handler if chain is True.
|
|\ \
| |/
| |
| | |
TextIOWrapper to a huge value, not TypeError.
|
| |
| |
| |
| | |
TextIOWrapper to a huge value, not TypeError.
|
|\ \
| |/
| |
| |
| | |
reset, check the version of the OpenSSL headers Python was compiled against,
rather than the runtime version of the OpenSSL library.
|
| |
| |
| |
| |
| | |
reset, check the version of the OpenSSL headers Python was compiled against,
rather than the runtime version of the OpenSSL library.
|
| |
| |
| |
| |
| |
| |
| | |
They only ignore the first byte of an invalid byte sequence.
For example, b'\xff\n'.decode('gb2312', 'replace') gives '\ufffd\n' instead of
'\ufffd'.
|
| |
| |
| |
| | |
Fix a compiler warning on Windows 64 bits.
|
| |
| |
| |
| |
| | |
negative, instead of an infinite sleep on Windows or raising an IOError on
Linux for example, to have the same behaviour on all platforms.
|
|\ \
| |/
| |
| | |
on Windows.
|
| | |
|
| |
| |
| |
| | |
Add a new HAVE_MBCS define.
|
| |
| |
| |
| |
| | |
Don't unset and set againt the HAVE_CLOCK define, reorder the #if tests
instead. Fix also the definition of the timezone encoding.
|
| |
| |
| |
| |
| |
| |
| | |
it is interrupted by a signal, instead of having to wait until the next
instruction.
Patch reviewed by Antoine Pitrou.
|
| | |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| | |
of correct behavior.
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Patch by Akira Kitada.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
encoding using _Py_char2wchar() instead of mbstowcs() to store undecodable
bytes as surrogates characters (PEP 383) instead of ignoring silently
the PYTHONPATH variable.
|
|\ \
| |/
| |
| |
| |
| | |
Fix os.fchown() and os.open()
Remove also trailing spaces and replace tabs by spaces.
|
| |
| |
| |
| |
| |
| | |
Fix os.fchown() and os.open()
Remove also trailing spaces and replace tabs by spaces.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\ |
|
|\ \ \ |
|
| |\ \ \
| | |/ / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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).
|
| | | |
| | | |
| | | |
| | | | |
methods.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Initial patch by Charles-François Natali.
|
|\ \ \ \
| | |_|/
| |/| | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
Lehtinen.
|
| | |
| | |
| | |
| | |
| | | |
children and raises BrokenProcessPool in such a situation. Previously it
would reliably freeze/deadlock.
|
| | | |
|