[unicodedata] add script_name and script_code to __all__
and cast to str to avoid error with import * in python2.7 TypeError: Item in from list'' must be str, not unicode
This commit is contained in:
parent
b354d2ee30
commit
1765ed772a
@ -16,7 +16,7 @@ except ImportError: # pragma: no cover
|
|||||||
from . import Blocks, Scripts, ScriptExtensions
|
from . import Blocks, Scripts, ScriptExtensions
|
||||||
|
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [tostr(s) for s in (
|
||||||
# names from built-in unicodedata module
|
# names from built-in unicodedata module
|
||||||
"lookup",
|
"lookup",
|
||||||
"name",
|
"name",
|
||||||
@ -36,7 +36,9 @@ __all__ = [
|
|||||||
"block",
|
"block",
|
||||||
"script",
|
"script",
|
||||||
"script_extension",
|
"script_extension",
|
||||||
]
|
"script_name",
|
||||||
|
"script_code",
|
||||||
|
)]
|
||||||
|
|
||||||
|
|
||||||
def script(char):
|
def script(char):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user