From 6c796423f59043236a75260b0e761dc3158a7aeb Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com> Date: Sat, 21 Oct 2017 18:13:50 -0400 Subject: [PATCH] STYLE: src/Admin: Remove unused imports --- .flake8 | 13 +------------ src/Admin/sitemap_gen.py | 4 ---- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/.flake8 b/.flake8 index 13344971415..49c100a6815 100644 --- a/.flake8 +++ b/.flake8 @@ -1,6 +1,5 @@ [flake8] -exclude = - src/Admin/ +max-line-length = 150 ignore = # E111 indentation is not a multiple of four E111, @@ -8,10 +7,6 @@ ignore = E114, # E122 continuation line missing indentation or outdented E122, - # E123 closing bracket does not match indentation of opening bracket's line - E123, - # E126 continuation line over-indented for hanging indent - E126, # E127 continuation line over-indented for visual indent E127, # E131 continuation line unaligned for hanging indent @@ -30,14 +25,8 @@ ignore = E221, # E225 missing whitespace around operator E225, - # E226 missing whitespace around arithmetic operator - E226, # E231 missing whitespace after ',' E231, - # E241 multiple spaces after ' - E241, - # E241 multiple spaces after ',' - E241, # E251 unexpected spaces around keyword / parameter equals E251, # E261 at least two spaces before inline comment diff --git a/src/Admin/sitemap_gen.py b/src/Admin/sitemap_gen.py index ff7ee01855b..811a12f2e47 100755 --- a/src/Admin/sitemap_gen.py +++ b/src/Admin/sitemap_gen.py @@ -17,9 +17,7 @@ """ -import os.path import sys -import string import getopt import urllib2 import urlparse @@ -27,8 +25,6 @@ from HTMLParser import HTMLParser from HTMLParser import HTMLParseError import xml.sax.saxutils import robotparser -import re -import httplib helpText = """sitemap_gen.py version 1.1.0 (2009-09-05) -- GitLab