From 7d8ee102a36d5ba72f6e4d91ed37a68e5d44221e Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Mon, 18 Aug 2014 15:58:06 +0200 Subject: [PATCH] Assignment before use (if Enumerate fails) --- bin/packages/Paste.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/packages/Paste.py b/bin/packages/Paste.py index f8c6dffa..2d9b5790 100755 --- a/bin/packages/Paste.py +++ b/bin/packages/Paste.py @@ -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: