Unverified Kaydet (Commit) 52dee687 authored tarafından Benjamin Peterson's avatar Benjamin Peterson Kaydeden (comit) GitHub

Assume the raw environ is always declared. (GH-8707)

posixmodule.c always declares environ, so don't bother catching a NameError in os.py.
üst db8707c8
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment