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
1abd82c0
Commit
1abd82c0
authored
Mar 28, 2000
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MBCS codecs for Windows. Contributed by Mark Hammond.
parent
e187b0eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
Lib/encodings/mbcs.py
Lib/encodings/mbcs.py
+37
-0
No files found.
Lib/encodings/mbcs.py
0 → 100644
View file @
1abd82c0
""" Python 'mbcs' Codec for Windows
Cloned by Mark Hammond (mhammond@skippinet.com.au) from ascii.py,
which was written by Marc-Andre Lemburg (mal@lemburg.com).
(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
"""
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
.
mbcs_encode
decode
=
codecs
.
mbcs_decode
class
StreamWriter
(
Codec
,
codecs
.
StreamWriter
):
pass
class
StreamReader
(
Codec
,
codecs
.
StreamReader
):
pass
class
StreamConverter
(
StreamWriter
,
StreamReader
):
encode
=
codecs
.
mbcs_decode
decode
=
codecs
.
mbcs_encode
### 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