Unverified Kaydet (Commit) 60ffeede authored tarafından Joffrey F's avatar Joffrey F Kaydeden (comit) GitHub

Merge pull request #2208 from BoboTiG/patch-2

Fix DeprecationWarning: invalid escape sequence in ports.py
...@@ -3,10 +3,10 @@ import re ...@@ -3,10 +3,10 @@ import re
PORT_SPEC = re.compile( PORT_SPEC = re.compile(
"^" # Match full string "^" # Match full string
"(" # External part "(" # External part
"((?P<host>[a-fA-F\d.:]+):)?" # Address r"((?P<host>[a-fA-F\d.:]+):)?" # Address
"(?P<ext>[\d]*)(-(?P<ext_end>[\d]+))?:" # External range r"(?P<ext>[\d]*)(-(?P<ext_end>[\d]+))?:" # External range
")?" ")?"
"(?P<int>[\d]+)(-(?P<int_end>[\d]+))?" # Internal range r"(?P<int>[\d]+)(-(?P<int_end>[\d]+))?" # Internal range
"(?P<proto>/(udp|tcp))?" # Protocol "(?P<proto>/(udp|tcp))?" # Protocol
"$" # Match full string "$" # Match full string
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment