From af20a2937246394ebc66ed07d6a3f2634dda77c5 Mon Sep 17 00:00:00 2001 From: jquast Date: Sat, 7 Sep 2013 12:24:41 -0400 Subject: import sorting using tool 'isort', https://github.com/timothycrosley/isort --- blessings/__init__.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/blessings/__init__.py b/blessings/__init__.py index 9e97e5b..675c2d7 100644 --- a/blessings/__init__.py +++ b/blessings/__init__.py @@ -1,18 +1,24 @@ -from contextlib import contextmanager +""" +(c) 2012 Erik Rose +MIT Licensed +https://github.com/erikrose/blessings +""" import curses -from curses import tigetstr, tigetnum, setupterm, tparm +import os +import struct +import sys +from contextlib import contextmanager +from curses import setupterm, tigetnum, tigetstr, tparm from fcntl import ioctl +from platform import python_version_tuple +from termios import TIOCGWINSZ + try: from io import UnsupportedOperation as IOUnsupportedOperation except ImportError: class IOUnsupportedOperation(Exception): """A dummy exception to take the place of Python 3's ``io.UnsupportedOperation`` in Python 2""" -import os -from platform import python_version_tuple -import struct -import sys -from termios import TIOCGWINSZ __all__ = ['Terminal'] -- cgit v1.2.1