diff options
author | shimizukawa <shimizukawa@gmail.com> | 2015-03-07 20:50:07 +0900 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2015-03-07 20:51:27 +0900 |
commit | 5e84a5dbf4ba08b34f94e7845eed908d7741feee (patch) | |
tree | 9d381de5476bbf684bd18f47e6691c56262e6ba9 /sphinx/util/console.py | |
parent | 3b6524067ffd998b728fdcff1677baf227131bf3 (diff) | |
download | sphinx-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.py | 4 |
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] |