summaryrefslogtreecommitdiff
path: root/blessings/__init__.py
diff options
context:
space:
mode:
authorErik Rose <grinch@grinchcentral.com>2015-02-03 00:42:53 -0500
committerErik Rose <grinch@grinchcentral.com>2015-02-03 00:42:53 -0500
commit3d8ea2b1ce2bd66018d1d08bf7105089ba495bf6 (patch)
treee16c98d0039a492cfc67653635d293daaca998cf /blessings/__init__.py
parent2405ab79a7c92aadadf437500d790eae2e65fb0f (diff)
parent7eb082718b8cd02a7a0c55e873a3f16b96d64ca6 (diff)
downloadblessings-3d8ea2b1ce2bd66018d1d08bf7105089ba495bf6.tar.gz
Rename instances of "blessed" to "blessings", including the package dir itself. Fix #75.
Diffstat (limited to 'blessings/__init__.py')
-rw-r--r--blessings/__init__.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/blessings/__init__.py b/blessings/__init__.py
new file mode 100644
index 0000000..3622d0e
--- /dev/null
+++ b/blessings/__init__.py
@@ -0,0 +1,16 @@
+"""
+A thin, practical wrapper around terminal capabilities in Python
+
+http://pypi.python.org/pypi/blessings
+"""
+import platform as _platform
+if ('3', '0', '0') <= _platform.python_version_tuple() < ('3', '2', '2+'):
+ # Good till 3.2.10
+ # Python 3.x < 3.2.3 has a bug in which tparm() erroneously takes a string.
+ raise ImportError('Blessings needs Python 3.2.3 or greater for Python 3 '
+ 'support due to http://bugs.python.org/issue10570.')
+
+
+from .terminal import Terminal
+
+__all__ = ('Terminal',)