Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f81f129

Browse files
committed
Cleaned up URI generation.
1 parent 1e9c5d3 commit f81f129

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tornadio/router.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,7 @@ def tornadio_initialize(cls, connection, user_settings, resource,
126126
# Copied from SocketTornad.IO with minor formatting
127127
if extra_re:
128128
if extra_re[0] != '(?P<extra>':
129-
if extra_re[0] == '(':
130-
extra_re = r'(?P<extra>%s)' % extra_re
131-
else:
132-
extra_re = r"(?P<extra>%s)" % extra_re
129+
extra_re = r'(?P<extra>%s)' % extra_re
133130
if extra_sep:
134131
extra_re = extra_sep + extra_re
135132
else:

0 commit comments

Comments
 (0)