summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjquast <contact@jeffquast.com>2013-09-07 12:24:41 -0400
committerjquast <contact@jeffquast.com>2013-09-07 12:24:41 -0400
commitaf20a2937246394ebc66ed07d6a3f2634dda77c5 (patch)
treecf96c2e65fd7490e6c660f9a360d680d3d1bef29
parent07716adddd303c01975e6b20a9c928bcde04f7d9 (diff)
downloadblessings-af20a2937246394ebc66ed07d6a3f2634dda77c5.tar.gz
import sorting
using tool 'isort', https://github.com/timothycrosley/isort
-rw-r--r--blessings/__init__.py20
1 files 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']