diff options
| author | Gabriel Falcão <gabriel@nacaolivre.org> | 2016-01-18 08:54:29 -0500 |
|---|---|---|
| committer | Gabriel Falcão <gabriel@nacaolivre.org> | 2016-01-18 08:54:29 -0500 |
| commit | d54939ec212fe967b386aef902278f7247036dcb (patch) | |
| tree | cc3682298200c4524fd619bd87bb115016480374 | |
| parent | 7e57dee71337b63d3e156b8820c4e07712d4edde (diff) | |
| download | httpretty-d54939ec212fe967b386aef902278f7247036dcb.tar.gz | |
pep8
| -rw-r--r-- | httpretty/core.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/httpretty/core.py b/httpretty/core.py index 2472fb9..c7d739b 100644 --- a/httpretty/core.py +++ b/httpretty/core.py @@ -802,8 +802,9 @@ class URIMatcher(object): def __init__(self, uri, entries, match_querystring=False, priority=0): self._match_querystring = match_querystring # CPython, Jython - if type(uri).__name__ in ('SRE_Pattern', - 'org.python.modules.sre.PatternObject'): + regex_types = ('SRE_Pattern', 'org.python.modules.sre.PatternObject') + is_regex = type(uri).__name__ in regex_types + if is_regex: self.regex = uri result = urlsplit(uri.pattern) if result.scheme == 'https': |
