Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | Issue #15154: Add "dir_fd" parameter to os.rmdir, remove "rmdir" | Larry Hastings | 2012-06-23 | 1 | -1/+4 | |
| | | | | | | | | | | | | | | parameter from os.remove / os.unlink. Patch written by Georg Brandl. (I'm really looking forward to George getting commit privileges so I don't have to keep doing checkins on his behalf.) | |||||
* | | Issue #14626: Large refactoring of functions / parameters in the os module. | Larry Hastings | 2012-06-22 | 1 | -83/+85 | |
| | | | | | | | | | | | | | | | | | | Many functions now support "dir_fd" and "follow_symlinks" parameters; some also support accepting an open file descriptor in place of of a path string. Added os.support_* collections as LBYL helpers. Removed many functions only previously seen in 3.3 alpha releases (often starting with "f" or "l", or ending with "at"). Originally suggested by Serhiy Storchaka; implemented by Larry Hastings. | |||||
* | | Issue #14711: os.stat_float_times() has been deprecated. | Victor Stinner | 2012-06-04 | 1 | -2/+6 | |
| | | ||||||
* | | Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError | Gregory P. Smith | 2012-06-03 | 1 | -0/+25 | |
|\ \ | |/ | | | | | | | | | when the path existed and had the S_ISGID mode bit set when it was not explicitly asked for. This is no longer an exception as mkdir cannot control if the OS sets that bit for it or not. | |||||
| * | Fixes Issue #14992: os.makedirs(path, exist_ok=True) would raise an OSError | Gregory P. Smith | 2012-06-03 | 1 | -6/+34 | |
| | | | | | | | | | | | | when the path existed and had the S_ISGID mode bit set when it was not explicitly asked for. This is no longer an exception as mkdir cannot control if the OS sets that bit for it or not. | |||||
* | | Add two more sorts to test_os.WalkTests I've missed before | Hynek Schlawack | 2012-05-15 | 1 | -0/+2 | |
| | | ||||||
* | | Sort file list in test_os.WalkTests | Hynek Schlawack | 2012-05-15 | 1 | -0/+1 | |
| | | | | | | | | | | Adding new files into the tree lead to buildbot fails as the order wasn't deterministic. | |||||
* | | #14773: Fix os.fwalk() failing on dangling symlinks | Hynek Schlawack | 2012-05-15 | 1 | -1/+5 | |
| | | ||||||
* | | Issue #14082: shutil.copy2() now copies extended attributes, if possible. | Antoine Pitrou | 2012-05-12 | 1 | -19/+1 | |
| | | | | | | | | Patch by Hynek Schlawack. | |||||
* | | Issue #14127: Add ns= parameter to utime, futimes, and lutimes. | Larry Hastings | 2012-05-03 | 1 | -14/+72 | |
| | | | | | | | | | | | | Removed futimens as it is now redundant. Changed shutil.copystat to use st_atime_ns and st_mtime_ns from os.stat and ns= parameter to utime--it once again preserves exact metadata on Linux! | |||||
* | | Issue #14127: Add st_{cma}time_ns fields to os.stat() result object. | Larry Hastings | 2012-04-19 | 1 | -0/+7 | |
| | | ||||||
* | | all OSErrors should indicate there are no extended attributes (closes #14358) | Benjamin Peterson | 2012-03-19 | 1 | -3/+1 | |
| | | ||||||
* | | update skip reason | Philip Jenvey | 2012-03-01 | 1 | -1/+1 | |
| | | ||||||
* | | also skip test_device_encoding when stdin isn't a tty | Philip Jenvey | 2012-03-01 | 1 | -2/+2 | |
| | | ||||||
* | | Issue #14153 Create _Py_device_encoding() to prevent _io from having to import | Brett Cannon | 2012-02-29 | 1 | -0/+19 | |
| | | | | | | | | the os module. | |||||
* | | Merge 3.2: Issue #13703 plus some related test suite fixes. | Georg Brandl | 2012-02-20 | 1 | -8/+28 | |
|\ \ | |/ | ||||||
| * | Merge from 3.1: Issue #13703: add a way to randomize the hash values of ↵ | Georg Brandl | 2012-02-20 | 1 | -8/+28 | |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | basic types (str, bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior. | |||||
| | * | Issue #13703: add a way to randomize the hash values of basic types (str, ↵ | Georg Brandl | 2012-02-20 | 1 | -8/+28 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | bytes, datetime) in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated. The environment variable PYTHONHASHSEED and the new command line flag -R control this behavior. | |||||
* | | | get_terminal_size() can also fail with ENOTTY if the fd is not connected to ↵ | Antoine Pitrou | 2012-02-08 | 1 | -2/+9 | |
| | | | | | | | | | | | | a terminal. | |||||
* | | | Relax tests to fix buildbot failure | Antoine Pitrou | 2012-02-08 | 1 | -2/+2 | |
| | | | ||||||
* | | | Issue #13609: Add two functions to query the terminal size: | Antoine Pitrou | 2012-02-08 | 1 | -0/+38 | |
| | | | | | | | | | | | | | | | os.get_terminal_size (low level) and shutil.get_terminal_size (high level). Patch by Zbigniew Jędrzejewski-Szmek. | |||||
* | | | Backout f8409b3d6449: the PEP 410 is not accepted yet | Victor Stinner | 2012-02-08 | 1 | -31/+0 | |
| | | | ||||||
* | | | PEP 410 | Victor Stinner | 2012-02-08 | 1 | -0/+31 | |
| | | | ||||||
* | | | Issue #13964: Skip os.*utime*() tests if os.stat() doesn't support timestamp | Victor Stinner | 2012-02-08 | 1 | -0/+11 | |
| | | | | | | | | | | | | with a subsecond resolution | |||||
* | | | Issue #13964: Split os.*utime*() subsecond tests into multiple tests to help | Victor Stinner | 2012-02-08 | 1 | -38/+75 | |
| | | | | | | | | | | | | debugging | |||||
* | | | Issue #13964: Test also os.futimesat() | Victor Stinner | 2012-02-08 | 1 | -1/+8 | |
| | | | ||||||
* | | | Issue #13964: Write tests for new os.*utime*() functions | Victor Stinner | 2012-02-08 | 1 | -0/+37 | |
| | | | ||||||
* | | | Following Nick's suggestion, rename posix.fdlistdir() to posix.flistdir(), to | Charles-François Natali | 2012-02-06 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | be consistent with other functions accepting file descriptors (fdlistdir() was added in 3.3, so hasn't been released yet). | |||||
* | | | Issue #13734: Add os.fwalk(), a directory walking function yielding file | Charles-François Natali | 2012-02-05 | 1 | -2/+58 | |
| | | | | | | | | | | | | descriptors. | |||||
* | | | Issue #8828: Add new function os.replace(), for cross-platform renaming with ↵ | Antoine Pitrou | 2012-01-30 | 1 | -0/+12 | |
| | | | | | | | | | | | | overwriting. | |||||
* | | | Issue #13772: In os.symlink() under Windows, do not try to guess the link | Antoine Pitrou | 2012-01-24 | 1 | -2/+7 | |
|\ \ \ | |/ / | | | | | | | | | | target's type (file or directory). The detection was buggy and made the call non-atomic (therefore prone to race conditions). | |||||
| * | | Issue #13772: In os.symlink() under Windows, do not try to guess the link | Antoine Pitrou | 2012-01-24 | 1 | -2/+7 | |
| | | | | | | | | | | | | | | | target's type (file or directory). The detection was buggy and made the call non-atomic (therefore prone to race conditions). | |||||
| * | | Issue #13415: Skip test_os.test_unset_error on FreeBSD and OS X. | Charles-François Natali | 2011-11-27 | 1 | -0/+4 | |
| | | | ||||||
* | | | Issue #13415: Skip test_os.test_unset_error on FreeBSD < 7 and OS X < 10.6 | Charles-François Natali | 2011-11-26 | 1 | -0/+4 | |
| | | | | | | | | | | | | (where unsetenv() doesn't return a value). | |||||
* | | | (Merge 3.2) Issue #13436: Fix unsetenv() test on Windows | Victor Stinner | 2011-11-22 | 1 | -1/+2 | |
|\ \ \ | |/ / | ||||||
| * | | Issue #13436: Fix unsetenv() test on Windows | Victor Stinner | 2011-11-22 | 1 | -1/+2 | |
| | | | ||||||
* | | | (Merge 3.2) Issue #13415: os.unsetenv() doesn't ignore errors anymore. | Victor Stinner | 2011-11-22 | 1 | -0/+9 | |
|\ \ \ | |/ / | ||||||
| * | | Issue #13415: os.unsetenv() doesn't ignore errors anymore. | Victor Stinner | 2011-11-22 | 1 | -0/+9 | |
| | | | ||||||
* | | | Issue #13374: Deprecate os.getcwdb() on Windows | Victor Stinner | 2011-11-16 | 1 | -0/+1 | |
| | | | ||||||
* | | | Issue #13374: Skip deprecation tests for os.symlink() on Windows XP | Victor Stinner | 2011-11-15 | 1 | -1/+8 | |
| | | | | | | | | | | | | To avoid a NotImplementedError('CreateSymbolicLinkW not found') error. | |||||
* | | | Issue #13374: The Windows bytes API has been deprecated in the os module. Use | Victor Stinner | 2011-11-15 | 1 | -4/+40 | |
| | | | | | | | | | | | | | | | Unicode filenames instead of bytes filenames to not depend on the ANSI code page anymore and to support any filename. | |||||
* | | | Oops. Update a placeholder comment with the issue number. | Brian Curtin | 2011-11-06 | 1 | -1/+1 | |
| | | | ||||||
* | | | Fix #13327. Remove the need for an explicit None as the second argument to | Brian Curtin | 2011-11-06 | 1 | -0/+15 | |
| | | | | | | | | | | | | | | | os.utime in order to update to the current time. The second argument is now optional. | |||||
* | | | Close #13174: Fix extended attributes tests in test_os for SELinux | Victor Stinner | 2011-10-16 | 1 | -5/+10 | |
| | | | | | | | | | | | | On Fedora, new files get the 'security.selinux' attribute. | |||||
* | | | expose linux extended file system attributes (closes #12720) | Benjamin Peterson | 2011-09-01 | 1 | -0/+94 | |
| | | | ||||||
* | | | test_os needs to reap threads | Antoine Pitrou | 2011-07-15 | 1 | -0/+1 | |
| | | | ||||||
* | | | (merge 3.2) test_os: remove now useless TemporaryFileTests testcase | Victor Stinner | 2011-07-01 | 1 | -111/+6 | |
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | 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). | |||||
| * | | test_os: remove now useless TemporaryFileTests testcase | Victor Stinner | 2011-07-01 | 1 | -111/+6 | |
| | | | | | | | | | | | | | | | | | | | | | | | | 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). | |||||
* | | | (merge 3.2) test_os: add TemporaryFileTests to the testcase list | Victor Stinner | 2011-07-01 | 1 | -0/+1 | |
|\ \ \ | |/ / | | | | | | | The testcase was never executed, it's now fixed. | |||||
| * | | test_os: add TemporaryFileTests to the testcase list | Victor Stinner | 2011-07-01 | 1 | -0/+1 | |
| | | | | | | | | | | | | The testcase was never executed, it's now fixed. |