mirror of https://github.com/docker/docker-py.git
Fix DeprecationWarning: invalid escape sequence in ports.py
Signed-off-by: Mickaël Schoentgen <contact@tiger-222.fr>
This commit is contained in:
parent
7911c54635
commit
e99ce1e359
|
|
@ -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