Skip to content

Commit d64c028

Browse files
committed
src/sage/interfaces/maxima_abstract.py: whitespace (PEP8) in _commands()
1 parent 12a2173 commit d64c028

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/sage/interfaces/maxima_abstract.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,11 @@ def _commands(self):
317317
318318
"""
319319
# 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
324325

325326
# Whack-a-mole to kill junk entries:
326327
#
@@ -339,12 +340,12 @@ def _commands(self):
339340
# show up with a random leading spaces: ' tminverse',
340341
# ' toeplitz', etc.
341342
#
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)]
348349

349350
def _tab_completion(self, verbose=True, use_disk_cache=True):
350351
r"""

0 commit comments

Comments
 (0)