diff --git a/jedi/modules.py b/jedi/modules.py index 15683ac1..4e0f59d1 100644 --- a/jedi/modules.py +++ b/jedi/modules.py @@ -136,7 +136,7 @@ class ModuleWithCursor(Module): self._line_length = len(line) line = line + '\n' # add lines with a backslash at the end - while 1: + while True: self._line_temp -= 1 last_line = self.get_line(self._line_temp) if last_line and last_line[-1] == '\\': diff --git a/jedi/parsing.py b/jedi/parsing.py index 22d48a18..090953f9 100644 --- a/jedi/parsing.py +++ b/jedi/parsing.py @@ -532,7 +532,7 @@ class Parser(object): defunct = False # take care for relative imports relative_count = 0 - while 1: + while True: token_type, tok = self.next() if tok != '.': break