From adbed02ff2ec36542d5ff5678aebe38705931fb9 Mon Sep 17 00:00:00 2001 From: CPython Developers <> Date: Mon, 15 Aug 2022 01:20:40 +0900 Subject: [PATCH] Update quopri from CPython 3.10.6 --- Lib/quopri.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Lib/quopri.py b/Lib/quopri.py index de1e19acd..08899c5cb 100755 --- a/Lib/quopri.py +++ b/Lib/quopri.py @@ -1,4 +1,4 @@ -#! /usr/bin/python3.6 +#! /usr/bin/env python3 """Conversions to/from quoted-printable transport encoding as per RFC 1521.""" @@ -204,11 +204,11 @@ def main(): print("-t: quote tabs") print("-d: decode; default encode") sys.exit(2) - deco = 0 - tabs = 0 + deco = False + tabs = False for o, a in opts: - if o == '-t': tabs = 1 - if o == '-d': deco = 1 + if o == '-t': tabs = True + if o == '-d': deco = True if tabs and deco: sys.stdout = sys.stderr print("-t and -d are mutually exclusive")