summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
Commit message (Collapse)AuthorAgeFilesLines
* Revert copy_reg -> copyreg rename.Georg Brandl2008-05-201-1/+1
|
* Remove references to platform 'mac'Ronald Oussoren2008-05-121-17/+3
| | | | | The 'mac' platform (that is, os.name == 'mac') was used for the MacOS 9 port, which is no longer supported (as of Python 2.4 IIRC).
* Added module stub for copy_reg renaming in 3.0.Alexandre Vassalotti2008-05-111-1/+1
| | | | | | Renamed copy_reg to copyreg in the standard library, to avoid spurious warnings and ease later merging to py3k branch. Public documentation remains intact.
* fix issue2707 - os.walk docstring example correctness typo.Gregory P. Smith2008-05-061-1/+2
|
* Moved the errno import from inside the functions to theFacundo Batista2007-11-271-6/+3
| | | | module level. Fixes issue 1755179.
* Fix new pop() method on os.environ on ignorecase-platforms.Georg Brandl2007-10-261-1/+1
|
* Bug #1287: make os.environ.pop() work as expected.Georg Brandl2007-10-241-0/+6
|
* Patch #1181: add os.environ.clear() method.Georg Brandl2007-09-201-0/+8
|
* Deprecate os.popen* and popen2 module in favor of the subprocess module.Neal Norwitz2007-05-111-9/+29
|
* New test for rev. 54407 which only uses directories under TESTFN.Georg Brandl2007-03-211-3/+7
|
* Try backing out 54407 to see if it corrects the problems on the WindowsNeal Norwitz2007-03-201-7/+3
| | | | | buildbots. This rev was backported, so we will need to keep both branches in sync, pending the outcome of the test after this checkin.
* Patch #1273829: os.walk() now has a "followlinks" parameter. If set toGeorg Brandl2007-03-161-3/+7
| | | | | True (which is not the default), it visits symlinks pointing to directories.
* Move errno imports back to individual functions.Georg Brandl2006-12-111-2/+3
|
* Patch #1608267: fix a race condition in os.makedirs() is the directoryGeorg Brandl2006-12-091-3/+8
| | | | to be created is already there.
* os.urandom no longer masks unrelated exceptions like SystemExit orGeorg Brandl2006-08-011-1/+1
| | | | KeyboardInterrupt.
* Patch #1410998: remove "DOS" from os.py docstringGeorg Brandl2006-01-201-1/+1
|
* SF#1343671.Fredrik Lundh2005-11-121-1/+1
| | | | | The removedirs function removes empty directories, it doesn't empty them.
* bug #1177468: don't cache /dev/urandom file descriptor in os.urandomGeorg Brandl2005-07-041-8/+4
|
* Avoid using items() in environ.update(). Fixes #1124513.Martin v. Löwis2005-02-171-8/+18
| | | | Will backport to 2.4.
* Revert os.py 1.75, and directly implement update.Martin v. Löwis2005-01-291-0/+22
| | | | Fixes #1110478 and #1100235.
* Added SEEK_* constants. Fixes #711830.Martin v. Löwis2005-01-161-1/+8
|
* Document that on Unix, the 'cmd' argument to the os.popen2/3/4 andJohannes Gijsbers2004-10-111-0/+18
| | | | | | | | | | popen2.popen2/3/4 functions can be a sequence. All texts are a variation on the following: On \UNIX, \var{cmd} may be a sequence, in which case arguments will be passed directly to the program without shell intervention (as with \function{os.spawnv()}). If \var{cmd} is a string it will be passed to the shell (as with \function{os.system()}).
* Patch #1021596: Check for None to determine whether _urandomfd isMartin v. Löwis2004-09-181-1/+1
| | | | uninitialized.
* Whitespace normalization.Tim Peters2004-09-011-1/+1
|
* Use multi-line importAndrew M. Kuchling2004-08-311-2/+2
|
* Whitespace normalization.Tim Peters2004-08-291-4/+4
|
* Patch #934711: Expose platform-specific entropy.Martin v. Löwis2004-08-291-0/+21
|
* Feature request #935915: Add os.path.devnull.Martin v. Löwis2004-06-081-2/+4
|
* OS/2 has support for spawnvp() and spawnvpe() in the C libraries suppliedAndrew MacIntyre2004-04-041-2/+5
| | | | | | | with major C compilers (VACPP, EMX+gcc and [Open]Watcom). Also tidy up the export of spawn*() symbols in the os module to match what is found/implemented.
* SF #904720: dict.update should take a 2-tuple sequence like dict.__init_Raymond Hettinger2004-03-041-6/+0
| | | | | | | | (Championed by Bob Ippolito.) The update() method for mappings now accepts all the same argument forms as the dict() constructor. This includes item lists and/or keyword arguments.
* [Bug #829532] Invoking os.makedirs() with an argument that contains aAndrew M. Kuchling2003-12-231-0/+2
| | | | | | | directory name with a single dot fails. The patch skips creating directories named os.curdir. (Patch by Bram Moolenaar) 2.3 bugfix candidate.
* OS/2+EMX: make the link() emulation available as os.link()Andrew MacIntyre2003-12-021-0/+1
|
* SF #764121, docstring for spawnlp incorrectNeal Norwitz2003-07-021-1/+1
|
* Add optional 'onerror' argument to os.walk(), to control errorGuido van Rossum2003-05-131-3/+12
| | | | handling.
* New generator os.walk() does a bit more than os.path.walk() does, andTim Peters2003-04-251-1/+80
| | | | | seems much easier to use. Code, docs, NEWS, and additions to test_os.py (testing this sucker is a bitch!).
* Get rid of many apply() calls.Guido van Rossum2003-02-271-2/+2
|
* Whitespace normalization.Tim Peters2003-02-191-6/+6
|
* Migrate definitions of several platform-dependent path-related variablesSkip Montanaro2003-02-141-57/+16
| | | | into the relevant path modules. See patch #686397.
* Whitespace normalization.Tim Peters2003-01-291-3/+3
|
* SF patch 661583: Remove old code from lib\os.pyTim Peters2003-01-081-10/+8
| | | | | A patch from Andrew Wilkinson to change some bizarre old exec statements specific to NT and CE.
* Always define getenv(), as suggested by Guido. This means that os.getenv() ↵Jack Jansen2003-01-081-5/+5
| | | | is also defined for MacPython-OS9 (even though it doesn't actually do anything useful), and it shouldn't hurt on other platforms.
* Remove more DOS support.Martin v. Löwis2002-10-091-24/+6
|
* Change UserDict to IterableUserDictRaymond Hettinger2002-09-071-1/+1
|
* Have os.environ() inherit from the iterable version of UserDict.Raymond Hettinger2002-09-061-1/+1
| | | | Closes SF bug 605731.
* Fix for SF bug 601077 by Zack Weinberg.Guido van Rossum2002-09-031-5/+12
| | | | | | | | The new execvpe code would sometimes do the wrong thing when a non-executable file existed earlier in the path and an executable file of the same name existed later in the path. This patch restores the proper behavior (which is to execute the second file). When only a non-executable file exists, the correct error is still reported.
* SF patch 590294: os._execvpe security fix (Zack Weinberg).Guido van Rossum2002-08-051-21/+6
| | | | | | | | | | | | | | 1) Do not attempt to exec a file which does not exist just to find out what error the operating system returns. This is an exploitable race on all platforms that support symbolic links. 2) Immediately re-raise the exception if we get an error other than errno.ENOENT or errno.ENOTDIR. This may need to be adapted for other platforms. (As a security issue, this should be considered for 2.1 and 2.2 as well as 2.3.)
* Be consistent with the functions in the posix/nt module: docstringsFred Drake2002-07-021-3/+3
| | | | don't include a " -> None" for functions that have no return value.
* SF 563203. Replaced 'has_key()' with 'in'.Raymond Hettinger2002-06-011-2/+4
|
* Patch 550804: Make os.environ.copy() return a copy.Martin v. Löwis2002-05-021-0/+4
|
* Convert a pile of obvious "yes/no" functions to return bool.Tim Peters2002-04-041-2/+2
|