Skip to content

Commit

Permalink
Remove capitalised exit forms.
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Apr 11, 2011
1 parent a1be81f commit 14fdb87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions IPython/core/interactiveshell.py
Expand Up @@ -1028,8 +1028,8 @@ def init_user_ns(self):
# Store myself as the public api!!!
ns['get_ipython'] = self.get_ipython

for n in ['exit', 'Exit', 'quit', 'Quit']:
ns[n] = self.exiter
ns['exit'] = self.exiter
ns['quit'] = self.exiter

# Sync what we've added so far to user_ns_hidden so these aren't seen
# by %who
Expand Down
4 changes: 2 additions & 2 deletions IPython/lib/tests/test_irunner.py
Expand Up @@ -77,7 +77,7 @@ def testIPython(self):
print "that's all folks!"
Exit
exit
"""
output = """\
In [1]: print 'hello, this is python'
Expand Down Expand Up @@ -124,7 +124,7 @@ def testIPython(self):
that's all folks!
In [12]: Exit
In [12]: exit
"""
runner = irunner.IPythonRunner(out=self.out)
self._test_runner(runner,source,output)
Expand Down

0 comments on commit 14fdb87

Please sign in to comment.