mirror of https://github.com/docker/docker-py.git
Merge pull request #2208 from BoboTiG/patch-2
Fix DeprecationWarning: invalid escape sequence in ports.py
This commit is contained in:
commit
60ffeede92
|
|
@ -3,10 +3,10 @@ import re
|
|||
PORT_SPEC = re.compile(
|
||||
"^" # Match full string
|
||||
"(" # External part
|
||||
"((?P<host>[a-fA-F\d.:]+):)?" # Address
|
||||
"(?P<ext>[\d]*)(-(?P<ext_end>[\d]+))?:" # External range
|
||||
r"((?P<host>[a-fA-F\d.:]+):)?" # Address
|
||||
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
|
||||
"$" # Match full string
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue