From 6c73a73f97260b529f8f1b0ac88a668dbc139839 Mon Sep 17 00:00:00 2001 From: "gchazara@trinidad.inria.fr" Date: Mon, 26 Jun 2006 18:54:10 +0200 Subject: [PATCH] No multi import --- pysize.py | 6 ++++-- ui/ascii/terminal_size.py | 4 +++- ui/gtk/ui_gtk.py | 3 ++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pysize.py b/pysize.py index b6be03f..ff10630 100755 --- a/pysize.py +++ b/pysize.py @@ -33,11 +33,13 @@ def _main(): def _prof(): try: - import cProfile, pstats + import cProfile + import pstats cProfile.run('_main()', 'pysize.prof') stats = pstats.Stats('pysize.prof') except ImportError: - import hotshot, hotshot.stats + import hotshot + import hotshot.stats prof = hotshot.Profile('pysize.prof') prof.runcall(_main) prof.close() diff --git a/ui/ascii/terminal_size.py b/ui/ascii/terminal_size.py index 47ec969..03a9751 100644 --- a/ui/ascii/terminal_size.py +++ b/ui/ascii/terminal_size.py @@ -4,7 +4,9 @@ import os def _ioctl_GWINSZ(fd): #### TABULATION FUNCTIONS try: ### Discover terminal width - import fcntl, termios, struct + import fcntl + import termios + import struct cr = struct.unpack('hh', fcntl.ioctl(fd, termios.TIOCGWINSZ, '1234')) except: return diff --git a/ui/gtk/ui_gtk.py b/ui/gtk/ui_gtk.py index 28c8fa1..4709c58 100644 --- a/ui/gtk/ui_gtk.py +++ b/ui/gtk/ui_gtk.py @@ -1,5 +1,6 @@ try: - import cairo, pygtk + import cairo + import pygtk pygtk.require('2.0') import gtk assert gtk.pygtk_version >= (2, 8) -- 2.11.4.GIT