Skip to content

Commit

Permalink
use an 'r' string to ensure the backslashes are always preserved
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21444 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Jan 21, 2019
1 parent addffce commit 44f5120
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def parse_proxy_attributes(display_name):
desc_tmp = dict()
# This one should *always* return a host, and should end with an optional numeric port
hostport = reout.group("hostport")
hostport_match = re.match("(?P<host>[^:]+)($|:(?P<port>\d+)$)", hostport)
hostport_match = re.match(r"(?P<host>[^:]+)($|:(?P<port>\d+)$)", hostport)
if not hostport_match:
raise RuntimeError("bad format for 'hostport': '%s'" % hostport)
host = hostport_match.group("host")
Expand Down

0 comments on commit 44f5120

Please sign in to comment.