From 2ce3869ab81af1bc02f2c34cce7788277fdf922b Mon Sep 17 00:00:00 2001 From: David Halter Date: Tue, 26 Jun 2012 01:34:58 +0200 Subject: [PATCH] revised TODOs --- functions.py | 2 +- parsing.py | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/functions.py b/functions.py index 9516bc0e..567eafa9 100644 --- a/functions.py +++ b/functions.py @@ -155,7 +155,7 @@ def complete(source, row, column, source_path): completions = [] debug.dbg('possible scopes', scopes) for s in scopes: - # TODO is this reall the right way? just ignore the functions? \ + # TODO is this really the right way? just ignore the functions? \ # do the magic functions first? and then recheck here? if not isinstance(s, evaluate.Function): completions += s.get_defined_names() diff --git a/parsing.py b/parsing.py index 82de69f3..98b53eb4 100644 --- a/parsing.py +++ b/parsing.py @@ -27,9 +27,6 @@ as input. Ignored statements: - print (no use for it, just slows down) - exec (dangerous - not controllable) - -TODO take special care for future imports -TODO check meta classes """ from _compatibility import next, literal_eval, tokenize_func, BytesIO @@ -122,7 +119,7 @@ class Scope(Simple): def add_docstr(self, string): """ Clean up a docstring """ - # TODO use prefixes, to format the doc strings + # TODO use prefixes, to format the doc strings -> inspect.cleandoc # scan for string prefixes like r, u, etc. index1 = string.find("'") index2 = string.find('"') @@ -641,8 +638,6 @@ class Statement(Simple): result = call elif tok in brackets.keys(): # brackets level += 1 - # TODO why is this not working, when the two statements ar not - # in the if/else clause (they are exactly the same!!!) if is_call_or_close(): result = Array(brackets[tok], self, result) result = result.parent.add_execution(result)