diff options
Diffstat (limited to 'Lib/getopt.py')
-rw-r--r-- | Lib/getopt.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/getopt.py b/Lib/getopt.py index f1dc7ac..91584fe 100644 --- a/Lib/getopt.py +++ b/Lib/getopt.py @@ -103,9 +103,9 @@ def long_has_args(opt, longopts): raise GetoptError('option --%s not recognized' % opt, opt) # Is there an exact match? if opt in possibilities: - return 0, opt + return False, opt elif opt + '=' in possibilities: - return 1, opt + return True, opt # No exact match, so better be unique. if len(possibilities) > 1: # XXX since possibilities contains all valid continuations, might be |