mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Assume the raw environ is always declared. (GH-8707)
posixmodule.c always declares environ, so don't bother catching a NameError in os.py.
This commit is contained in:
parent
db8707c8ab
commit
52dee687af
1 changed files with 0 additions and 6 deletions
|
|
@ -525,12 +525,6 @@ if {open, stat} <= supports_dir_fd and {scandir, stat} <= supports_fd:
|
|||
|
||||
__all__.append("fwalk")
|
||||
|
||||
# Make sure os.environ exists, at least
|
||||
try:
|
||||
environ
|
||||
except NameError:
|
||||
environ = {}
|
||||
|
||||
def execl(file, *args):
|
||||
"""execl(file, *args)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue