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

M.-A. Lemburg lemburg@users.sourceforge.net
Thu, 20 Sep 2001 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:
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):
class StreamReader(Codec,codecs.StreamReader):

### encodings module API

def getregentry():

    return (Codec.encode,Codec.decode,StreamReader,StreamWriter)