]> jfr.im git - z_archive/twitter.git/blobdiff - twitter/cmdline.py
Fix the shell. Broken since the Python 3 move. I guess nobody uses it. :(
[z_archive/twitter.git] / twitter / cmdline.py
index 775df731b977f22eaaa7cfa4a5beb1ff3e044443..c99c692a6cfe90e5b941b7c35615f865ac74fcd0 100644 (file)
@@ -64,6 +64,12 @@ prompt: <twitter_shell_prompt e.g. '[cyan]twitter[R]> '>
 
 from __future__ import print_function
 
+try:
+    input = __builtins__['raw_input']
+except AttributeError:
+    pass
+
+
 CONSUMER_KEY='uS6hO2sV6tDKIOeVjhnFnQ'
 CONSUMER_SECRET='MEYTOS97VvlHX7K1rwHPEqVpTSqZ71HtvoK4sVuYk'