Skip to content

Commit

Permalink
remove unused options from _compat closes #80
Browse files Browse the repository at this point in the history
  • Loading branch information
thadeusb committed Apr 21, 2014
1 parent c5c9320 commit d98bd72
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions flask_cache/_compat.py
Expand Up @@ -17,27 +17,6 @@


if not PY2:
text_type = str
string_types = (str,)
range_type = range

iterkeys = lambda d: iter(d.keys())
itervalues = lambda d: iter(d.values())
iteritems = lambda d: iter(d.items())

import pickle
from io import BytesIO, StringIO
NativeStringIO = StringIO

else:
text_type = unicode
string_types = (str, unicode)
range_type = xrange

iterkeys = lambda d: d.iterkeys()
itervalues = lambda d: d.itervalues()
iteritems = lambda d: d.iteritems()

import cPickle as pickle
from cStringIO import StringIO as BytesIO, StringIO
NativeStringIO = BytesIO

0 comments on commit d98bd72

Please sign in to comment.