From ab4d65959e034833d75d9ab991d134f7ca51a1fb Mon Sep 17 00:00:00 2001 From: Steve Pulec Date: Thu, 28 Feb 2013 22:40:26 -0500 Subject: [PATCH] httpretty fixes for py26 --- moto/packages/httpretty.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/packages/httpretty.py b/moto/packages/httpretty.py index a9bbf8f79..e0bbb404a 100644 --- a/moto/packages/httpretty.py +++ b/moto/packages/httpretty.py @@ -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)