diff options
author | jquast <contact@jeffquast.com> | 2013-09-07 12:24:41 -0400 |
---|---|---|
committer | jquast <contact@jeffquast.com> | 2013-09-07 15:34:17 -0400 |
commit | 523e9822e5dedba97bce5762866926546fdc6b7f (patch) | |
tree | ae0f3bb357e1d43b0bea8b4ee4e69d16fc53ab2d | |
parent | 249dedf6e040bbab52b4fba9e46176077084d70d (diff) | |
download | blessings-523e9822e5dedba97bce5762866926546fdc6b7f.tar.gz |
import sorting
using tool 'isort', https://github.com/timothycrosley/isort
-rw-r--r-- | blessings/__init__.py | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/blessings/__init__.py b/blessings/__init__.py index 7df9bec..16c7bed 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'] |