From 0898346162fc68af0d5448ffebcd79bc78aca139 2015-03-26 17:30:14 From: Thomas Adriaan Hellinger Date: 2015-03-26 17:30:14 Subject: [PATCH] Replaced tabs with 4 spaces each --- diff --git a/IPython/core/alias.py b/IPython/core/alias.py index f30d6ff..aa55137 100644 --- a/IPython/core/alias.py +++ b/IPython/core/alias.py @@ -169,12 +169,12 @@ class Alias(object): if cmd.find('%l') >= 0: cmd = cmd.replace('%l', rest) rest = '' - + if nargs==0: - if cmd.find('%%s') >= 1: - cmd = cmd.replace('%%s', '%s') - # Simple, argument-less aliases - cmd = '%s %s' % (cmd, rest) + if cmd.find('%%s') >= 1: + cmd = cmd.replace('%%s', '%s') + # Simple, argument-less aliases + cmd = '%s %s' % (cmd, rest) else: # Handle aliases with positional arguments args = rest.split(None, nargs)