Fix new flake8 from pyflakes 2.2.0 release

This commit is contained in:
Christian Adams
2020-04-16 10:13:09 -04:00
parent e0c8f3e541
commit a899a147e1
13 changed files with 19 additions and 18 deletions

View File

@@ -79,7 +79,7 @@ class URLRegistry(object):
for url_pattern, method_pattern in url_iterable:
if url_pattern in self.store and method_pattern in self.store[url_pattern]:
if method_pattern.pattern == not_provided:
exc_msg = '"{0.pattern}" already has methodless registration.'.format(url_pattern, method_pattern)
exc_msg = '"{0.pattern}" already has methodless registration.'.format(url_pattern)
else:
exc_msg = ('"{0.pattern}" already has registered method "{1.pattern}"'
.format(url_pattern, method_pattern))