mark regex as regex for pycodestyle
Change-Id: Id66a3e4d574fa4da5fbffe6a1aa24c5ea23ab8cc
This commit is contained in:
parent
60a83b28a7
commit
698b571749
@ -74,5 +74,6 @@ def main():
|
||||
for classifier in classifiers:
|
||||
print(' {}'.format(classifier))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
@ -75,8 +75,8 @@ Requirements = collections.namedtuple('Requirements', ['reqs'])
|
||||
|
||||
|
||||
url_re = re.compile(
|
||||
'^(?P<url>\s*(?:-e\s)?\s*(?:(?:[a-z]+\+)?(?:[a-z]+))://[^#]*)'
|
||||
'#egg=(?P<name>[-\.\w]+)')
|
||||
r'^(?P<url>\s*(?:-e\s)?\s*(?:(?:[a-z]+\+)?(?:[a-z]+))://[^#]*)'
|
||||
r'#egg=(?P<name>[-\.\w]+)')
|
||||
|
||||
|
||||
def canonical_name(req_name):
|
||||
|
@ -11,7 +11,7 @@ import six.moves.configparser as configparser
|
||||
|
||||
def main():
|
||||
errors = 0
|
||||
pattern = re.compile('^(.*?)\s*=\s*([^:]*?):.*$')
|
||||
pattern = re.compile(r'^(.*?)\s*=\s*([^:]*?):.*$')
|
||||
config = configparser.ConfigParser()
|
||||
config.read('setup.cfg')
|
||||
console_scripts = config.get('entry_points', 'console_scripts')
|
||||
|
Loading…
Reference in New Issue
Block a user