Show More
@@ -1,7 +1,7 b'' | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 | """Magic functions for InteractiveShell. |
|
2 | """Magic functions for InteractiveShell. | |
3 |
|
3 | |||
4 |
$Id: Magic.py 182 |
|
4 | $Id: Magic.py 1829 2006-10-16 08:04:11Z vivainio $""" | |
5 |
|
5 | |||
6 | #***************************************************************************** |
|
6 | #***************************************************************************** | |
7 | # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and |
|
7 | # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and | |
@@ -2365,7 +2365,7 b' Defaulting color scheme to \'NoColor\'"""' | |||||
2365 |
|
2365 | |||
2366 | par = parameter_s.strip() |
|
2366 | par = parameter_s.strip() | |
2367 | if not par: |
|
2367 | if not par: | |
2368 |
stored = self.db |
|
2368 | stored = self.db.get('stored_aliases', {} ) | |
2369 | atab = self.shell.alias_table |
|
2369 | atab = self.shell.alias_table | |
2370 | aliases = atab.keys() |
|
2370 | aliases = atab.keys() | |
2371 | aliases.sort() |
|
2371 | aliases.sort() | |
@@ -2405,7 +2405,7 b' Defaulting color scheme to \'NoColor\'"""' | |||||
2405 | aname = parameter_s.strip() |
|
2405 | aname = parameter_s.strip() | |
2406 | if aname in self.shell.alias_table: |
|
2406 | if aname in self.shell.alias_table: | |
2407 | del self.shell.alias_table[aname] |
|
2407 | del self.shell.alias_table[aname] | |
2408 |
stored = self.db |
|
2408 | stored = self.db.get('stored_aliases', {} ) | |
2409 | if aname in stored: |
|
2409 | if aname in stored: | |
2410 | print "Removing %stored alias",aname |
|
2410 | print "Removing %stored alias",aname | |
2411 | del stored[aname] |
|
2411 | del stored[aname] |
General Comments 0
You need to be logged in to leave comments.
Login now