mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-24 17:28:36 +08:00
while 1 -> while True
This commit is contained in:
+1
-1
@@ -136,7 +136,7 @@ class ModuleWithCursor(Module):
|
|||||||
self._line_length = len(line)
|
self._line_length = len(line)
|
||||||
line = line + '\n'
|
line = line + '\n'
|
||||||
# add lines with a backslash at the end
|
# add lines with a backslash at the end
|
||||||
while 1:
|
while True:
|
||||||
self._line_temp -= 1
|
self._line_temp -= 1
|
||||||
last_line = self.get_line(self._line_temp)
|
last_line = self.get_line(self._line_temp)
|
||||||
if last_line and last_line[-1] == '\\':
|
if last_line and last_line[-1] == '\\':
|
||||||
|
|||||||
+1
-1
@@ -532,7 +532,7 @@ class Parser(object):
|
|||||||
defunct = False
|
defunct = False
|
||||||
# take care for relative imports
|
# take care for relative imports
|
||||||
relative_count = 0
|
relative_count = 0
|
||||||
while 1:
|
while True:
|
||||||
token_type, tok = self.next()
|
token_type, tok = self.next()
|
||||||
if tok != '.':
|
if tok != '.':
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user