We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f482042 commit 7cb5c06Copy full SHA for 7cb5c06
unpythonic/net/client.py
@@ -38,6 +38,7 @@
38
import sys
39
import signal
40
import threading
41
+import re
42
43
from .msg import MessageDecoder
44
from .util import socketsource, ReceiveBuffer
@@ -205,7 +206,6 @@ def read_more_input():
205
206
if b"\n" in val:
207
text = val.decode("utf-8")
208
first_line, *rest = text.split("\n")
- import re
209
matches = re.findall(r"session (\d+) connected", first_line)
210
assert len(matches) == 1, "Expected server to print session id on the first line"
211
repl_session_id = int(matches[0])
0 commit comments