Skip to content

Commit

Permalink
Update pytest_httpserver/httpserver.py
Browse files Browse the repository at this point in the history
Co-authored-by: Daan Klijn <daanklijn0@gmail.com>
  • Loading branch information
csernazs and daanklijn committed Aug 5, 2020
1 parent 2947ff0 commit 10d8826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest_httpserver/httpserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def match_uri(self, request: Request) -> bool:
return self.uri.match(path)

# this is python version depending
# in python 3.7 and above: it is re.Patter
# in python 3.7 and above: it is re.Pattern
# below python 3.7 it is _sre.SRE_Pattern which cannot be accessed directly
elif isinstance(self.uri, re.compile("").__class__):
return bool(self.uri.match(path))
Expand Down

0 comments on commit 10d8826

Please sign in to comment.