Permalink
Browse files

Try to use cStringIO whenever available.

  • Loading branch information...
1 parent a703464 commit dc6b646bedb97c6b824a91d011b871ff440359a0 @didip committed Mar 8, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/crammit/__init__.py
@@ -29,7 +29,12 @@
import hashlib
import sys
import optparse
-import StringIO
+
+try:
+ from cStringIO import StringIO
+except:
+ from StringIO import StringIO
+
import gzip
from collections import defaultdict

0 comments on commit dc6b646

Please sign in to comment.