Fixing some Python drei stuff

This commit is contained in:
Miroslav Stampar
2024-06-27 10:43:35 +02:00
parent f1ac7dc39b
commit d37db2e7e8
3 changed files with 8 additions and 6 deletions

View File

@@ -80,7 +80,7 @@ from __future__ import generators
from __future__ import print_function
__author__ = "Leonard Richardson (leonardr@segfault.org)"
__version__ = "3.2.1"
__version__ = "3.2.1b"
__copyright__ = "Copyright (c) 2004-2012 Leonard Richardson"
__license__ = "New-style BSD"
@@ -93,14 +93,16 @@ if sys.version_info >= (3, 0):
text_type = str
binary_type = bytes
basestring = str
unichr = chr
else:
text_type = unicode
binary_type = str
try:
from htmlentitydefs import name2codepoint
from html.entities import name2codepoint
except ImportError:
name2codepoint = {}
from htmlentitydefs import name2codepoint
try:
set
except NameError: