[Python-checkins] CVS: python/dist/src/Lib/encodings utf_7.py,NONE,1.1

M.-A. Lemburg lemburg@users.sourceforge.net
2001年9月20日 05:56:16 -0700


Update of /cvsroot/python/python/dist/src/Lib/encodings
In directory usw-pr-cvs1:/tmp/cvs-serv13130/Lib/encodings
Added Files:
	utf_7.py 
Log Message:
Python part of the UTF-7 codec by Brian Quinlan.
--- NEW FILE: utf_7.py ---
""" 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)

AltStyle によって変換されたページ (->オリジナル) /