summaryrefslogtreecommitdiff
path: root/compat.py
diff options
context:
space:
mode:
authorEmile Anclin <emile.anclin@logilab.fr>2010-09-21 15:00:17 +0200
committerEmile Anclin <emile.anclin@logilab.fr>2010-09-21 15:00:17 +0200
commita8ae81eed215104745f9b13599d7b648e711732a (patch)
treed4df60b6ad7d82ea9aaa5e4776afbd743f9b1829 /compat.py
parente5c13b05080459f7fb3c25d9c2ccbdd00f188df6 (diff)
downloadlogilab-common-a8ae81eed215104745f9b13599d7b648e711732a.tar.gz
[py3k] define raw_input for py3.x
Diffstat (limited to 'compat.py')
-rw-r--r--compat.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/compat.py b/compat.py
index c025878..b91f922 100644
--- a/compat.py
+++ b/compat.py
@@ -38,6 +38,11 @@ except NameError:# callable removed from py3k
return isinstance(something, collections.Callable)
del collections
+if sys.version_info < (3, 0):
+ raw_input = raw_input
+else:
+ raw_input = input
+
try:
set = set
frozenset = frozenset