aboutsummaryrefslogtreecommitdiffstats
path: root/mitmproxy/net
diff options
context:
space:
mode:
authorMickaël Schoentgen <contact@tiger-222.fr>2019-01-05 23:20:39 +0100
committerMickaël Schoentgen <contact@tiger-222.fr>2019-01-05 23:37:48 +0100
commit3a2d7bb119828613f2a40b936b1a4d5c40125ccb (patch)
tree4bad85cba8497e3c5fbfe2fb95c2ea50b6639a2e /mitmproxy/net
parent889987aa0a7f4852758ed09f70fe5d30f733a6d3 (diff)
downloadmitmproxy-3a2d7bb119828613f2a40b936b1a4d5c40125ccb.tar.gz
mitmproxy-3a2d7bb119828613f2a40b936b1a4d5c40125ccb.tar.bz2
mitmproxy-3a2d7bb119828613f2a40b936b1a4d5c40125ccb.zip
Fix several DeprecationWarning: invalid escape sequence
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
Diffstat (limited to 'mitmproxy/net')
-rw-r--r--mitmproxy/net/check.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/net/check.py b/mitmproxy/net/check.py
index aaea851f..a19ad6fe 100644
--- a/mitmproxy/net/check.py
+++ b/mitmproxy/net/check.py
@@ -2,7 +2,7 @@ import ipaddress
import re
# Allow underscore in host name
-_label_valid = re.compile(b"(?!-)[A-Z\d\-_]{1,63}(?<!-)$", re.IGNORECASE)
+_label_valid = re.compile(br"(?!-)[A-Z\d\-_]{1,63}(?<!-)$", re.IGNORECASE)
def is_valid_host(host: bytes) -> bool: