Permalink
Browse files

FIX: tweepyshell: ipython shell took original arguments

Previously the ipython shell kidnapped all tweepyshell input
arguments and interpreted as its own. Thus e.g. supplying
a username resulted in it trying to open a file with a name equal
to the username. This is not nice so let's put an end to it by
explicitly passing an empty arguments list.
  • Loading branch information...
imrehg committed Mar 19, 2010
1 parent b9686cf commit 2f49648ab6d68882e438cca7e63762a6b71dfb86
Showing with 1 addition and 1 deletion.
  1. +1 −1 tweepyshell
View
@@ -37,7 +37,7 @@ shellbanner = '<Tweepy shell>'
try:
import IPython
- ipshell = IPython.Shell.IPShell(user_ns = local_ns)
+ ipshell = IPython.Shell.IPShell([''], user_ns = local_ns)
ipshell.mainloop(sys_exit=1, banner = shellbanner)
except ImportError:
import code

0 comments on commit 2f49648

Please sign in to comment.