mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
filter needs to be converted to list.
Method replace is missing. Needs to be fixed.
This commit is contained in:
parent
bf9ec70f27
commit
cc7673ccc8
@ -63,9 +63,9 @@ class Shell:
|
||||
"""
|
||||
|
||||
s = line
|
||||
s = filter(lambda x: x in '()[]{}"\'', s)
|
||||
s = s.replace ("'''", "'")
|
||||
s = s.replace ('"""', '"')
|
||||
s = list(filter(lambda x: x in '()[]{}"\'', s))
|
||||
# s = s.replace ("'''", "'")
|
||||
# s = s.replace ('"""', '"')
|
||||
instring = False
|
||||
brackets = {'(':')', '[':']', '{':'}', '"':'"', '\'':'\''}
|
||||
stack = []
|
||||
|
Loading…
Reference in New Issue
Block a user