mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-27 00:07:16 +00:00
Assignment before use (if Enumerate fails)
This commit is contained in:
parent
ebef13fa5b
commit
7d8ee102a3
1 changed files with 1 additions and 0 deletions
|
@ -117,6 +117,7 @@ class Paste(object):
|
|||
if self.p_nb_lines is None or self.p_max_length_line is None:
|
||||
max_length_line = 0
|
||||
f = self.get_p_content_as_file()
|
||||
line_id = 0
|
||||
for line_id, line in enumerate(f):
|
||||
length = len(line)
|
||||
if length >= max_length_line:
|
||||
|
|
Loading…
Reference in a new issue