Fix pep warnings.

This commit is contained in:
Brandon Amos 2015-12-26 17:41:22 -05:00
parent e601a87adc
commit 335683c812
1 changed files with 3 additions and 1 deletions

View File

@ -10,6 +10,8 @@ utilDir = os.path.dirname(os.path.realpath(__file__))
ignores = ['localhost', '127.0.0.1', 'your-server', 'docker-ip',
'ghbtns', 'sphinx-doc']
def ignoreURL(url):
for ignore in ignores:
if ignore in url:
@ -31,7 +33,7 @@ dirs = [os.path.join(utilDir, '..', d) for d in dirs]
cmd = ['grep', '-I', '--no-filename',
'-o', '\(http\|https\)://[^"\')}`<> ]*',
'-R'] + dirs + \
['--exclude-dir=_build']
['--exclude-dir=_build']
p = Popen(cmd, stdout=PIPE)
out = p.communicate()[0]