Use pycodestyle instead of pep8 (#25947)

This commit is contained in:
Pilou 2017-07-13 20:46:31 +02:00 committed by Matt Clay
commit 4b3d6dfa8a
8 changed files with 19 additions and 15 deletions

View file

@ -210,6 +210,7 @@ class SourcesList(object):
if filename is not None:
return filename
return '_'.join(re.sub('[^a-zA-Z0-9]', ' ', s).split())
def _strip_username_password(s):
if '@' in s:
s = s.split('@', 1)