Python 3.x compatibility fix

Tuple unpacking removed as of 3.0, see PEP 3113.
This commit is contained in:
Johan Hägg 2015-12-14 14:02:40 +01:00
parent f8e89e8ac5
commit c54e09b521
1 changed files with 1 additions and 1 deletions

View File

@ -882,7 +882,7 @@ class httpretty(HttpBaseClass):
def match_uriinfo(cls, info):
items = sorted(
cls._entries.items(),
key=lambda (matcher, _): matcher.priority,
key=lambda matcher_entries: matcher_entries[0].priority,
reverse=True,
)
for matcher, value in items: