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:
Benjamin Peterson 2018-08-07 21:51:12 -07:00 committed by GitHub
parent db8707c8ab
commit 52dee687af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)