- 28 Jun, 2019 1 commit
-
-
Benjamin Peterson authored
-
- 27 Jun, 2019 6 commits
-
-
Steve Dower authored
Also updates some (unreleased) event names to be consistent with the others.
-
Inada Naoki authored
-
Brandt Bucher authored
-
Andrew Svetlov authored
-
Jeroen Demeyer authored
-
Victor Stinner authored
When libc_ver() is called with an executable, the os.confstr('CS_GNU_LIBC_VERSION') fast-path cannot be taken. Modify platform.platform() to call libc_ver() without executable, instead of calling libc_ver(sys.executable), since sys.executable is already the default value.
-
- 26 Jun, 2019 11 commits
-
-
Victor Stinner authored
* Fix typo in supports_file2file_sendfile(); ensure that dst is removed * Fix test_copytree_custom_copy_function(): remove dst tree. Use support.rmtree() rather than shutil.rmtree() to remove temporary directories: support tries harder.
-
-
Zackery Spytz authored
Use Py_ssize_t instead of int for i.
-
Abhilash Raj authored
* patched string index out of range error in get_word function of _header_value_parser.py and created tests in test__header_value_parser.py for CFWS. * Raise HeaderParseError instead of continuing when parsing a word.
-
Brandt Bucher authored
-
Victor Stinner authored
Fix test_wsgiref.testEnviron() to no longer depend on the environment variables (don't fail if "X" variable is set). testEnviron() now overrides os.environ to get a deterministic environment. Test full TestHandler.environ content: not only a few selected variables.
-
Serhiy Storchaka authored
-
Victor Stinner authored
Remove the undocumented sys.callstats() function. Since Python 3.7, it was deprecated and always returned None. It required a special build option CALL_PROFILE which was already removed in Python 3.7.
-
Steve Dower authored
-
Victor Stinner authored
The os.getcwdb() function now uses the UTF-8 encoding on Windows, rather than the ANSI code page: see PEP 529 for the rationale. The function is no longer deprecated on Windows. os.getcwd() and os.getcwdb() now detect integer overflow on memory allocations. On Unix, these functions properly report MemoryError on memory allocation failure.
-
Victor Stinner authored
The sqlite3 module now raises TypeError, rather than ValueError, if operation argument type is not str: execute(), executemany() and calling a connection.
-
- 25 Jun, 2019 16 commits
-
-
Victor Stinner authored
Add a fast-path to PyUnicode_Decode() for size equals to 0.
-
Victor Stinner authored
In development mode and in debug build, encoding and errors arguments are now checked on string encoding and decoding operations. Examples: open(), str.encode() and bytes.decode(). By default, for best performances, the errors argument is only checked at the first encoding/decoding error, and the encoding argument is sometimes ignored for empty strings.
-
Pierre Glaser authored
Increase robustness of test_resource_tracker(): retry for 60 seconds.
-
Pierre Glaser authored
-
Abhilash Raj authored
* bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. When certain malformed messages have content-type set to 'mulitpart/*' but still have a single part body, iter_attachments can raise AttributeError. This patch fixes it by returning a None value instead when the body is single part.
-
Victor Stinner authored
Use os.getgroups() rather than grp.getgrall() to get groups. Rename also the test to test_chown_gid().
-
Victor Stinner authored
Python now gets the absolute path of the script filename specified on the command line (ex: "python3 script.py"): the __file__ attribute of the __main__ module, sys.argv[0] and sys.path[0] become an absolute path, rather than a relative path. * Add _Py_isabs() and _Py_abspath() functions. * _PyConfig_Read() now tries to get the absolute path of run_filename, but keeps the relative path if _Py_abspath() fails. * Reimplement os._getfullpathname() using _Py_abspath(). * Use _Py_isabs() in getpath.c.
-
Xtreak authored
-
Victor Stinner authored
test.pythoninfo now also logs pwd.getpwuid(os.getuid()) and os.getgrouplist(). Extract also os.getrandom() test to run it first.
-
Pablo Galindo authored
-
Serhiy Storchaka authored
* The UTF-8 incremental decoders fails now fast if encounter a sequence that can't be handled by the error handler. * The UTF-16 incremental decoders with the surrogatepass error handler decodes now a lone low surrogate with final=False.
-
Zackery Spytz authored
eval() was being called an extra time without a filter for deprecation warnings.
-
Raymond Hettinger authored
-
Pablo Galindo authored
-
Pablo Galindo authored
-
Victor Stinner authored
Remove sys.getcheckinterval() and sys.setcheckinterval() functions. They were deprecated since Python 3.2. Use sys.getswitchinterval() and sys.setswitchinterval() instead. Remove also check_interval field of the PyInterpreterState structure.
-
- 24 Jun, 2019 6 commits
-
-
David K. Hess authored
-
animalize authored
-
animalize authored
-
Xtreak authored
-
ziheng authored
-
Andrew Svetlov authored
-