]> granicus.if.org Git - python/commitdiff
Use os.environ.get() in stead of os.getenv() (which is platform-dependent).
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 26 Jul 2002 11:34:49 +0000 (11:34 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 26 Jul 2002 11:34:49 +0000 (11:34 +0000)
Lib/getopt.py

index 46aa7023dd718c987d690488c799cfa665542cb4..1b835a5a2ce9a4742d35355fc317aa62b824bf0f 100644 (file)
@@ -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