Commits

Guido van Rossum  committed f9c07ee

Bugfix: it choked on an empty argument!

  • Participants
  • Parent commits 73e266b
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/getopt.py

 
 def getopt(args, options):
     list = []
-    while args and args[0][0] == '-' and args[0] <> '-':
+    while args and args[0][:1] == '-' and args[0] <> '-':
     	if args[0] == '--':
     	    args = args[1:]
     	    break