diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-15 19:21:48 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-10-15 19:21:48 +0300 |
commit | 0875e0e8536a6d9567117a5bbd542ebd252129fb (patch) | |
tree | 7b3220b99b5be942658d9f570e2e5ec9739c2ab9 | |
parent | da473ffea7d97390bae2aa3e4edc33e769922fec (diff) | |
download | pylint-0875e0e8536a6d9567117a5bbd542ebd252129fb.tar.gz |
Use enumerate instead of range.
-rw-r--r-- | pylint/reporters/ureports/text_writer.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pylint/reporters/ureports/text_writer.py b/pylint/reporters/ureports/text_writer.py index 9d91349..87538b2 100644 --- a/pylint/reporters/ureports/text_writer.py +++ b/pylint/reporters/ureports/text_writer.py @@ -71,8 +71,7 @@ class TextWriter(BaseWriter): # get columns width cols_width = [0]*len(table_content[0]) for row in table_content: - for index in range(len(row)): - col = row[index] + for index, col in enumerate(row): cols_width[index] = max(cols_width[index], len(col)) if layout.klass == 'field': self.field_table(layout, table_content, cols_width) |