httpretty fixes for py26

This commit is contained in:
Steve Pulec 2013-02-28 22:40:26 -05:00
parent 67eeb5a050
commit ab4d65959e

View File

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