while 1 -> while True
This commit is contained in:
1 parent
5b2028c9fc
commit
8c314c2732
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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] == '\\':
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user