summaryrefslogtreecommitdiff
path: root/sphinx/util/console.py
diff options
context:
space:
mode:
authorshimizukawa <shimizukawa@gmail.com>2015-03-07 20:50:07 +0900
committershimizukawa <shimizukawa@gmail.com>2015-03-07 20:51:27 +0900
commit5e84a5dbf4ba08b34f94e7845eed908d7741feee (patch)
tree9d381de5476bbf684bd18f47e6691c56262e6ba9 /sphinx/util/console.py
parent3b6524067ffd998b728fdcff1677baf227131bf3 (diff)
downloadsphinx-git-5e84a5dbf4ba08b34f94e7845eed908d7741feee.tar.gz
enables flake8 E401: multiple imports on one line
Diffstat (limited to 'sphinx/util/console.py')
-rw-r--r--sphinx/util/console.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/util/console.py b/sphinx/util/console.py
index a9b7ee55d..24d3e4568 100644
--- a/sphinx/util/console.py
+++ b/sphinx/util/console.py
@@ -25,7 +25,9 @@ codes = {}
def get_terminal_width():
"""Borrowed from the py lib."""
try:
- import termios, fcntl, struct
+ import termios
+ import fcntl
+ import struct
call = fcntl.ioctl(0, termios.TIOCGWINSZ,
struct.pack('hhhh', 0, 0, 0, 0))
height, width = struct.unpack('hhhh', call)[:2]