mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
minor style fixes
This commit is contained in:
parent
36a6aa7afc
commit
e186786243
1 changed files with 2 additions and 2 deletions
|
@ -393,9 +393,9 @@ class Completer(object):
|
|||
opts = []
|
||||
for i in _opts:
|
||||
try:
|
||||
v = eval('%s.%s' % (expr,i), _ctx)
|
||||
v = eval('{0}.{1}'.format(expr, i), _ctx)
|
||||
opts.append(i)
|
||||
except:
|
||||
except: # pylint:disable=bare-except
|
||||
continue
|
||||
if len(attr) == 0:
|
||||
opts = [o for o in opts if not o.startswith('_')]
|
||||
|
|
Loading…
Add table
Reference in a new issue