Skip to content

Commit 56e958b

Browse files
ppmflossarhadthedev
authored andcommitted
pythonGH-102456: Fix docstring and getopt options for base64 (pythongh-102457)
(cherry picked from commit d828b35)
1 parent 4664a7c commit 56e958b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/base64.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,13 +567,13 @@ def decodebytes(s):
567567
def main():
568568
"""Small main program"""
569569
import sys, getopt
570-
usage = """usage: %s [-h|-d|-e|-u|-t] [file|-]
570+
usage = """usage: %s [-h|-d|-e|-u] [file|-]
571571
-h: print this help message and exit
572572
-d, -u: decode
573573
-e: encode (default)
574574
-t: encode and decode string 'Aladdin:open sesame'"""%sys.argv[0]
575575
try:
576-
opts, args = getopt.getopt(sys.argv[1:], 'hdeut')
576+
opts, args = getopt.getopt(sys.argv[1:], 'hdeu')
577577
except getopt.error as msg:
578578
sys.stdout = sys.stderr
579579
print(msg)

0 commit comments

Comments
 (0)