Skip to content

Commit

Permalink
make %reset arguments case insensitive.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanov committed Jan 26, 2012
1 parent e37887a commit 01ddba0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions IPython/core/magic.py
Expand Up @@ -1039,6 +1039,7 @@ def magic_reset(self, parameter_s=''):
user_ns = self.user_ns # local lookup, heavily used

for target in args:
target = target.lower() # make matches case insensitive
if target == 'out':
print "Flushing output cache (%d entries)" % len(user_ns['_oh'])
self.displayhook.flush()
Expand Down

0 comments on commit 01ddba0

Please sign in to comment.