found the memory-critical pieces. also removed old debug code

This commit is contained in:
David Halter
2012-08-13 16:45:33 +02:00
parent e6f6003476
commit 37b5f2cb93
6 changed files with 7 additions and 31 deletions

View File

@@ -1334,7 +1334,6 @@ class PyFuzzyParser(object):
"""
buf = BytesIO(self.code)
self.gen = tokenize_func(buf.readline)
self.currentscope = self.scope # TODO remove?
extended_flow = ['else', 'elif', 'except', 'finally']
statement_toks = ['{', '[', '(', '`']
@@ -1346,8 +1345,6 @@ class PyFuzzyParser(object):
token_type, tok = self.next()
#debug.dbg('main: tok=[%s] type=[%s] indent=[%s]'\
# % (tok, token_type, start_position[0]))
#print('main: tok=[%s] type=[%s] indent=[%s]'
# % (tok, tokenize.tok_name[token_type], self.start_pos[0]))
while token_type == tokenize.DEDENT \
and self.scope != self.module: