From: Jack Jansen Date: Fri, 26 Jul 2002 11:34:49 +0000 (+0000) Subject: Use os.environ.get() in stead of os.getenv() (which is platform-dependent). X-Git-Tag: v2.3c1~4862 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f03c692357275625a92b2d266d51de83b5ea932b;p=python Use os.environ.get() in stead of os.getenv() (which is platform-dependent). --- diff --git a/Lib/getopt.py b/Lib/getopt.py index 46aa7023dd..1b835a5a2c 100644 --- a/Lib/getopt.py +++ b/Lib/getopt.py @@ -117,7 +117,7 @@ def gnu_getopt(args, shortopts, longopts = []): if shortopts.startswith('+'): shortopts = shortopts[1:] all_options_first = True - elif os.getenv("POSIXLY_CORRECT"): + elif os.environ.get("POSIXLY_CORRECT"): all_options_first = True else: all_options_first = False