diff options
author | Robert Brewer <fumanchu@aminus.org> | 2009-06-14 22:57:43 +0000 |
---|---|---|
committer | Robert Brewer <fumanchu@aminus.org> | 2009-06-14 22:57:43 +0000 |
commit | fcfe0b95f43bfbeb21921cbfc38848724c12db94 (patch) | |
tree | 9aa8d880e015925e9cc1517471657a8a8c82dea9 /cherrypy/lib/encoding.py | |
parent | 47c22fbf17a94ce82dbb0564d304e10cea81e62b (diff) | |
download | cherrypy-git-fcfe0b95f43bfbeb21921cbfc38848724c12db94.tar.gz |
Removed py3print.
Diffstat (limited to 'cherrypy/lib/encoding.py')
-rw-r--r-- | cherrypy/lib/encoding.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cherrypy/lib/encoding.py b/cherrypy/lib/encoding.py index d5886af1..287228dc 100644 --- a/cherrypy/lib/encoding.py +++ b/cherrypy/lib/encoding.py @@ -1,4 +1,8 @@ try: + from cStringIO import StringIO +except ImportError: + from StringIO import StringIO +try: set except NameError: from sets import Set as set @@ -197,7 +201,6 @@ def compress(body, compress_level): def decompress(body): import gzip - from cherrypy.py3util import StringIO zbuf = StringIO() zbuf.write(body) |