httpretty fixes for py26
This commit is contained in:
parent
67eeb5a050
commit
ab4d65959e
@ -722,7 +722,7 @@ class URIMatcher(object):
|
||||
info = None
|
||||
|
||||
def __init__(self, uri, method, entries):
|
||||
if uri.__class__.__name__ == 'SRE_Pattern':
|
||||
if type(uri).__name__ == 'SRE_Pattern':
|
||||
self.regex = uri
|
||||
else:
|
||||
self.info = URIInfo.from_uri(uri, entries)
|
||||
|
Loading…
Reference in New Issue
Block a user