diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-09-21 15:00:17 +0200 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-09-21 15:00:17 +0200 |
commit | a8ae81eed215104745f9b13599d7b648e711732a (patch) | |
tree | d4df60b6ad7d82ea9aaa5e4776afbd743f9b1829 /compat.py | |
parent | e5c13b05080459f7fb3c25d9c2ccbdd00f188df6 (diff) | |
download | logilab-common-a8ae81eed215104745f9b13599d7b648e711732a.tar.gz |
[py3k] define raw_input for py3.x
Diffstat (limited to 'compat.py')
-rw-r--r-- | compat.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |