Staging
v0.5.1
https://github.com/python/cpython
Revision 3813281fec352449db98572c119179f4b3faec8d authored by Michael W. Hudson on 15 March 2002, 10:24:42 UTC, committed by Michael W. Hudson on 15 March 2002, 10:24:42 UTC
    revision 1.6 of test_cfgparser

As part of fixing bug #523301, add a simple test of ConfigParser.write()
1 parent c790c97
Raw File
Tip revision: 3813281fec352449db98572c119179f4b3faec8d authored by Michael W. Hudson on 15 March 2002, 10:24:42 UTC
backport akuchling's checkin of
Tip revision: 3813281
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)

back to top