Skip to content

Commit da13094

Browse files
committed
Merge branch 'sisou/split-tokens-tab' of https://github.com/sisou/websockify
2 parents 100a776 + 663b39c commit da13094

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

websockify/token_plugins.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import sys
33
import time
4+
import re
45

56
class BasePlugin():
67
def __init__(self, src):
@@ -31,7 +32,7 @@ def _load_targets(self):
3132
for line in [l.strip() for l in open(f).readlines()]:
3233
if line and not line.startswith('#'):
3334
try:
34-
tok, target = line.split(': ')
35+
tok, target = re.split(':\s', line)
3536
self._targets[tok] = target.strip().rsplit(':', 1)
3637
except ValueError:
3738
print("Syntax error in %s on line %d" % (self.source, index), file=sys.stderr)

0 commit comments

Comments
 (0)