Skip to content

Commit 550b547

Browse files
author
Sebastian Ramacher
committed
Remove unnecessary imports.
1 parent b38e1d5 commit 550b547

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

bpython/cli.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,6 @@ def gethw():
16741674
"""
16751675

16761676
if platform.system() != 'Windows':
1677-
import struct
16781677
h, w = struct.unpack(
16791678
"hhhh",
16801679
fcntl.ioctl(sys.__stdout__, termios.TIOCGWINSZ, "\000" * 8))[0:2]
@@ -1690,7 +1689,6 @@ def gethw():
16901689
res = windll.kernel32.GetConsoleScreenBufferInfo(h, csbi)
16911690

16921691
if res:
1693-
import struct
16941692
(bufx, bufy, curx, cury, wattr,
16951693
left, top, right, bottom, maxx, maxy) = struct.unpack("hhhhHhhhhhh", csbi.raw)
16961694
sizex = right - left + 1

0 commit comments

Comments
 (0)