while 1 -> while True

This commit is contained in:
Laurens Van Houtven
2013-07-11 15:25:05 +02:00
parent 5b2028c9fc
commit 8c314c2732
2 changed files with 2 additions and 2 deletions

View File

@@ -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] == '\\':

View File

@@ -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