summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-12-06 22:25:25 (GMT)
committerGeorg Brandl <georg@python.org>2010-12-06 22:25:25 (GMT)
commit7c23ea2e88777798fcf1ca6d20c6cbbd8c1cacec (patch)
tree2f886be14eec1d950d01c67ab1a6c956fafbe8b5 /Lib
parentfbb56ed8fb7d7ebf800224f68e621a1f8b491942 (diff)
downloadcpython-7c23ea2e88777798fcf1ca6d20c6cbbd8c1cacec.zip
cpython-7c23ea2e88777798fcf1ca6d20c6cbbd8c1cacec.tar.gz
cpython-7c23ea2e88777798fcf1ca6d20c6cbbd8c1cacec.tar.bz2
Don't use deprecated aliases.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/encodings/base64_codec.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/encodings/base64_codec.py b/Lib/encodings/base64_codec.py
index e8b19ee..321a961 100644
--- a/Lib/encodings/base64_codec.py
+++ b/Lib/encodings/base64_codec.py
@@ -13,11 +13,11 @@ import base64
def base64_encode(input, errors='strict'):
assert errors == 'strict'
- return (base64.encodestring(input), len(input))
+ return (base64.encodebytes(input), len(input))
def base64_decode(input, errors='strict'):
assert errors == 'strict'
- return (base64.decodestring(input), len(input))
+ return (base64.decodebytes(input), len(input))
class Codec(codecs.Codec):
def encode(self, input, errors='strict'):
@@ -28,12 +28,12 @@ class Codec(codecs.Codec):
class IncrementalEncoder(codecs.IncrementalEncoder):
def encode(self, input, final=False):
assert self.errors == 'strict'
- return base64.encodestring(input)
+ return base64.encodebytes(input)
class IncrementalDecoder(codecs.IncrementalDecoder):
def decode(self, input, final=False):
assert self.errors == 'strict'
- return base64.decodestring(input)
+ return base64.decodebytes(input)
class StreamWriter(Codec, codecs.StreamWriter):
charbuffertype = bytes