diff options
author | Helmut Grohne <helmut@subdivi.de> | 2010-08-31 12:31:51 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2010-08-31 12:31:51 +0200 |
commit | 73e958a9b2ca244a6e7ec4e85ef91327425d8aba (patch) | |
tree | 841dd9a753db98d6e444f7edb518876eeb033103 /wsgitools/filters.py | |
parent | 55492002da9f49e4eb4ee94ab73e232546f0c45f (diff) | |
download | wsgitools-73e958a9b2ca244a6e7ec4e85ef91327425d8aba.tar.gz |
bugfix: io module from py2.6 provides incompatible StringIO
Diffstat (limited to 'wsgitools/filters.py')
-rw-r--r-- | wsgitools/filters.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/wsgitools/filters.py b/wsgitools/filters.py index 8f4f6a5..7062357 100644 --- a/wsgitools/filters.py +++ b/wsgitools/filters.py @@ -10,13 +10,12 @@ __all__ = [] import sys import time import gzip +# Cannot use io module as it is broken in 2.6. +# Writing a str to a io.StringIO results in an exception. try: - import io + import cStringIO as io except ImportError: - try: - import cStringIO as io - except ImportError: - import StringIO as io + import StringIO as io try: next |