Skip to content

Commit f32d22d

Browse files
committed
isolate fcntl
1 parent d147bee commit f32d22d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rocker/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import docker
3636
import pexpect
3737

38-
import fcntl
3938
from pathlib import Path
4039
import signal
4140
import struct
@@ -276,6 +275,7 @@ def __init__ (self, process):
276275
self.active = os.isatty(sys.__stdout__.fileno())
277276

278277
def set_window_size(self):
278+
import fcntl
279279
s = struct.pack("HHHH", 0, 0, 0, 0)
280280
try:
281281
a = struct.unpack('hhhh', fcntl.ioctl(SYS_STDOUT.fileno(),

0 commit comments

Comments
 (0)