Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d1c29653
Commit
d1c29653
authored
Jul 02, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace normalization; the plat-riscos file didn't even get by
tabnanny.py.
parent
8734952a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Lib/quopri.py
Lib/quopri.py
+6
-6
No files found.
Lib/quopri.py
View file @
d1c29653
...
...
@@ -12,7 +12,7 @@ HEX = '0123456789ABCDEF'
EMPTYSTRING
=
''
def
needsquoting
(
c
,
quotetabs
):
"""Decide whether a particular character needs to be quoted.
...
...
@@ -30,7 +30,7 @@ def quote(c):
return
ESCAPE
+
HEX
[
i
/
16
]
+
HEX
[
i
%
16
]
def
encode
(
input
,
output
,
quotetabs
):
"""Read 'input', apply quoted-printable encoding, and write to 'output'.
...
...
@@ -88,7 +88,7 @@ def encodestring(s, quotetabs=0):
return
outfp
.
getvalue
()
def
decode
(
input
,
output
):
"""Read 'input', apply quoted-printable decoding, and write to 'output'.
...
...
@@ -131,7 +131,7 @@ def decodestring(s):
return
outfp
.
getvalue
()
# Other helper functions
def
ishex
(
c
):
"""Return true if the character 'c' is a hexadecimal digit."""
...
...
@@ -153,7 +153,7 @@ def unhex(s):
return
bits
def
main
():
import
sys
import
getopt
...
...
@@ -197,6 +197,6 @@ def main():
sys
.
exit
(
sts
)
if
__name__
==
'__main__'
:
main
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment