Skip to content

Commit 7cb5c06

Browse files
committed
REPL client: imports at beginning
1 parent f482042 commit 7cb5c06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unpythonic/net/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import sys
3939
import signal
4040
import threading
41+
import re
4142

4243
from .msg import MessageDecoder
4344
from .util import socketsource, ReceiveBuffer
@@ -205,7 +206,6 @@ def read_more_input():
205206
if b"\n" in val:
206207
text = val.decode("utf-8")
207208
first_line, *rest = text.split("\n")
208-
import re
209209
matches = re.findall(r"session (\d+) connected", first_line)
210210
assert len(matches) == 1, "Expected server to print session id on the first line"
211211
repl_session_id = int(matches[0])

0 commit comments

Comments
 (0)