Skip to content

Commit

Permalink
Merge pull request #2208 from BoboTiG/patch-2
Browse files Browse the repository at this point in the history
Fix DeprecationWarning: invalid escape sequence in ports.py
  • Loading branch information
shin- committed Dec 27, 2018
2 parents 7911c54 + e99ce1e commit 60ffeed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/utils/ports.py
Expand Up @@ -3,10 +3,10 @@
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
)
Expand Down

0 comments on commit 60ffeed

Please sign in to comment.