[Python-checkins] python/dist/src/Lib getopt.py,1.21,1.22

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
Fri, 26 Jul 2002 04:34:51 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv13606

Modified Files:
	getopt.py 
Log Message:
Use os.environ.get() in stead of os.getenv() (which is platform-dependent).

Index: getopt.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/getopt.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** getopt.py	16 Jul 2002 21:35:23 -0000	1.21
--- getopt.py	26 Jul 2002 11:34:49 -0000	1.22
***************
*** 118,122 ****
          shortopts = shortopts[1:]
          all_options_first = True
!     elif os.getenv("POSIXLY_CORRECT"):
          all_options_first = True
      else:
--- 118,122 ----
          shortopts = shortopts[1:]
          all_options_first = True
!     elif os.environ.get("POSIXLY_CORRECT"):
          all_options_first = True
      else: