Skip to content

Commit adbed02

Browse files
CPython Developersyouknowone
authored andcommitted
Update quopri from CPython 3.10.6
1 parent fffd66f commit adbed02

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lib/quopri.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/python3.6
1+
#! /usr/bin/env python3
22

33
"""Conversions to/from quoted-printable transport encoding as per RFC 1521."""
44

@@ -204,11 +204,11 @@ def main():
204204
print("-t: quote tabs")
205205
print("-d: decode; default encode")
206206
sys.exit(2)
207-
deco = 0
208-
tabs = 0
207+
deco = False
208+
tabs = False
209209
for o, a in opts:
210-
if o == '-t': tabs = 1
211-
if o == '-d': deco = 1
210+
if o == '-t': tabs = True
211+
if o == '-d': deco = True
212212
if tabs and deco:
213213
sys.stdout = sys.stderr
214214
print("-t and -d are mutually exclusive")

0 commit comments

Comments
 (0)