summaryrefslogtreecommitdiffstats
path: root/Lib/getopt.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-07-26 11:34:49 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-07-26 11:34:49 (GMT)
commitf03c692357275625a92b2d266d51de83b5ea932b (patch)
tree5671caa219d32c3cbf5b0e0560e20218a4196152 /Lib/getopt.py
parentaeb6a60e03f6fa7c093fa88342f6502627add8e7 (diff)
downloadcpython-f03c692357275625a92b2d266d51de83b5ea932b.zip
cpython-f03c692357275625a92b2d266d51de83b5ea932b.tar.gz
cpython-f03c692357275625a92b2d266d51de83b5ea932b.tar.bz2
Use os.environ.get() in stead of os.getenv() (which is platform-dependent).
Diffstat (limited to 'Lib/getopt.py')
-rw-r--r--Lib/getopt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/getopt.py b/Lib/getopt.py
index 46aa702..1b835a5 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