mark regex as regex for pycodestyle

Change-Id: Id66a3e4d574fa4da5fbffe6a1aa24c5ea23ab8cc
This commit is contained in:
Matthew Thode 2019-12-13 23:15:45 -06:00
parent 60a83b28a7
commit 698b571749
No known key found for this signature in database
GPG Key ID: 64A37BEAAE19A4E8
3 changed files with 4 additions and 3 deletions

View File

@ -74,5 +74,6 @@ def main():
for classifier in classifiers:
print(' {}'.format(classifier))
if __name__ == '__main__':
main()

View File

@ -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):

View File

@ -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')