Skip to content

Commit

Permalink
actually commit the stupid compat module
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Friend committed Apr 10, 2015
1 parent 9b3b8ab commit 3d5e4cb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sc/_compat.py
@@ -0,0 +1,12 @@
#!/usr/bin/env python

"""python2/3 compatability wrappers"""

import sys

PY2 = sys.version_info[0] == 2

if not PY2:
iteritems = lambda d: iter(d.items())
else:
iteritems = lambda d: d.iteritems()

0 comments on commit 3d5e4cb

Please sign in to comment.