[Python-checkins] GH-102456: Fix docstring and getopt options for base64 (gh-102457)

corona10 webhook-mailer at python.org
Sun Apr 2 01:05:58 EDT 2023


https://github.com/python/cpython/commit/d828b35785eeb590b8ca92684038f33177989e46
commit: d828b35785eeb590b8ca92684038f33177989e46
branch: main
author: Partha P. Mukherjee <ppm.floss at gmail.com>
committer: corona10 <donghee.na92 at gmail.com>
date: 2023-04-02T14:05:50+09:00
summary:

GH-102456: Fix docstring and getopt options for base64 (gh-102457)

files:
M Lib/base64.py

diff --git a/Lib/base64.py b/Lib/base64.py
index 95dc7b008605..e233647ee766 100755
--- a/Lib/base64.py
+++ b/Lib/base64.py
@@ -558,12 +558,12 @@ def decodebytes(s):
 def main():
     """Small main program"""
     import sys, getopt
-    usage = f"""usage: {sys.argv[0]} [-h|-d|-e|-u|-t] [file|-]
+    usage = f"""usage: {sys.argv[0]} [-h|-d|-e|-u] [file|-]
         -h: print this help message and exit
         -d, -u: decode
         -e: encode (default)"""
     try:
-        opts, args = getopt.getopt(sys.argv[1:], 'hdeut')
+        opts, args = getopt.getopt(sys.argv[1:], 'hdeu')
     except getopt.error as msg:
         sys.stdout = sys.stderr
         print(msg)



More information about the Python-checkins mailing list