summaryrefslogtreecommitdiffstats
path: root/lib/wcwidth/__init__.py
diff options
context:
space:
mode:
authorxiubuzhe <xiubuzhe@sina.com>2023-10-10 21:45:57 +0800
committerxiubuzhe <xiubuzhe@sina.com>2023-10-10 21:45:57 +0800
commit71ed6d302d1dead149b6bd198cec29ede7718064 (patch)
tree8984ba28d679fb769fd1912ca5f585935fcc0c5c /lib/wcwidth/__init__.py
parentc12c79537a53c10ff5a67a47e4f939e7d6a26805 (diff)
downloadsunhpc-71ed6d302d1dead149b6bd198cec29ede7718064.tar.gz
sunhpc-71ed6d302d1dead149b6bd198cec29ede7718064.tar.bz2
sunhpc-71ed6d302d1dead149b6bd198cec29ede7718064.zip
modify python-3.10 to python-3.12
Diffstat (limited to 'lib/wcwidth/__init__.py')
-rw-r--r--lib/wcwidth/__init__.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/wcwidth/__init__.py b/lib/wcwidth/__init__.py
new file mode 100644
index 0000000..97c423d
--- /dev/null
+++ b/lib/wcwidth/__init__.py
@@ -0,0 +1,28 @@
+"""
+wcwidth module.
+
+https://github.com/jquast/wcwidth
+"""
+# re-export all functions & definitions, even private ones, from top-level
+# module path, to allow for 'from wcwidth import _private_func'. Of course,
+# user beware that any _private function may disappear or change signature at
+# any future version.
+
+# local
+from .wcwidth import ZERO_WIDTH # noqa
+from .wcwidth import (WIDE_EASTASIAN,
+ wcwidth,
+ wcswidth,
+ _bisearch,
+ list_versions,
+ _wcmatch_version,
+ _wcversion_value)
+
+# The __all__ attribute defines the items exported from statement,
+# 'from wcwidth import *', but also to say, "This is the public API".
+__all__ = ('wcwidth', 'wcswidth', 'list_versions')
+
+# We also used pkg_resources to load unicode version tables from version.json,
+# generated by bin/update-tables.py, but some environments are unable to
+# import pkg_resources for one reason or another, yikes!
+__version__ = '0.2.8'