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
35b0cb09
Commit
35b0cb09
authored
Sep 20, 2001
by
Marc-André Lemburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python part of the UTF-7 codec by Brian Quinlan.
parent
6871f6ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
Lib/encodings/utf_7.py
Lib/encodings/utf_7.py
+27
-0
No files found.
Lib/encodings/utf_7.py
0 → 100644
View file @
35b0cb09
""" Python 'utf-7' Codec
Written by Brian Quinlan (brian@sweetapp.com).
"""
import
codecs
### Codec APIs
class
Codec
(
codecs
.
Codec
):
# Note: Binding these as C functions will result in the class not
# converting them to methods. This is intended.
encode
=
codecs
.
utf_7_encode
decode
=
codecs
.
utf_7_decode
class
StreamWriter
(
Codec
,
codecs
.
StreamWriter
):
pass
class
StreamReader
(
Codec
,
codecs
.
StreamReader
):
pass
### encodings module API
def
getregentry
():
return
(
Codec
.
encode
,
Codec
.
decode
,
StreamReader
,
StreamWriter
)
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