@@ -317,10 +317,11 @@ def _commands(self):
317
317
318
318
"""
319
319
# Passing the empty string to apropos() gets ALL names.
320
- all_names = self ._eval_line ('apropos("")' , error_check = False ).split ("," )
321
- a_to_Z = tuple ( chr (i + j )
322
- for i in range (ord ('A' ),ord ('Z' )+ 1 )
323
- for j in (0 , 32 ) ) # 'a' = 'A' + 32
320
+ all_names = self ._eval_line ('apropos("")' ,
321
+ error_check = False ).split ("," )
322
+ a_to_Z = tuple (chr (i + j )
323
+ for i in range (ord ('A' ),ord ('Z' )+ 1 )
324
+ for j in (0 , 32 )) # 'a' = 'A' + 32
324
325
325
326
# Whack-a-mole to kill junk entries:
326
327
#
@@ -339,12 +340,12 @@ def _commands(self):
339
340
# show up with a random leading spaces: ' tminverse',
340
341
# ' toeplitz', etc.
341
342
#
342
- bad_chars = ( "-" , "/" , "?" , "%" )
343
- return [ c .strip ()
344
- for c in all_names
345
- if c
346
- and (c [0 ] in a_to_Z or c [0 ] == " " )
347
- and not any ( bad in c for bad in bad_chars ) ]
343
+ bad_chars = ("-" , "/" , "?" , "%" )
344
+ return [c .strip ()
345
+ for c in all_names
346
+ if c
347
+ and (c [0 ] in a_to_Z or c [0 ] == " " )
348
+ and not any (bad in c for bad in bad_chars ) ]
348
349
349
350
def _tab_completion (self , verbose = True , use_disk_cache = True ):
350
351
r"""
0 commit comments