[tools] Remove py2 remains
This commit is contained in:
parent
2e29a4077b
commit
a0c58be371
|
@ -8,11 +8,6 @@ import io
|
|||
import re
|
||||
import sys
|
||||
|
||||
try:
|
||||
reload(sys)
|
||||
sys.setdefaultencoding('utf-8')
|
||||
except NameError:
|
||||
pass # Python 3
|
||||
|
||||
print ("""static OS2Range _hb_os2_unicode_ranges[] =
|
||||
{""")
|
||||
|
|
|
@ -151,18 +151,13 @@ property_names = [
|
|||
'Overstruck',
|
||||
]
|
||||
|
||||
try:
|
||||
basestring
|
||||
except NameError:
|
||||
basestring = str
|
||||
|
||||
class PropertyValue(object):
|
||||
def __init__(self, name_):
|
||||
self.name = name_
|
||||
def __str__(self):
|
||||
return self.name
|
||||
def __eq__(self, other):
|
||||
return self.name == (other if isinstance(other, basestring) else other.name)
|
||||
return self.name == (other if isinstance(other, str) else other.name)
|
||||
def __ne__(self, other):
|
||||
return not (self == other)
|
||||
def __hash__(self):
|
||||
|
|
|
@ -2,10 +2,6 @@
|
|||
|
||||
import sys, os, re, difflib, unicodedata, errno, cgi, itertools
|
||||
from itertools import *
|
||||
try:
|
||||
import unicodedata2 as unicodedata
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
diff_symbols = "-+=*&^%$#@!~/"
|
||||
diff_colors = ['red', 'green', 'blue']
|
||||
|
|
Loading…
Reference in New Issue