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
|
@ -525,12 +525,6 @@ if {open, stat} <= supports_dir_fd and {scandir, stat} <= supports_fd:
|
||||||
|
|
||||||
__all__.append("fwalk")
|
__all__.append("fwalk")
|
||||||
|
|
||||||
# Make sure os.environ exists, at least
|
|
||||||
try:
|
|
||||||
environ
|
|
||||||
except NameError:
|
|
||||||
environ = {}
|
|
||||||
|
|
||||||
def execl(file, *args):
|
def execl(file, *args):
|
||||||
"""execl(file, *args)
|
"""execl(file, *args)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue