Remove now unnecessary Python 2 code path
This commit is contained in:
parent
63fb3fb881
commit
811316cd3a
@ -390,13 +390,7 @@ class NameRecord(object):
|
|||||||
"""
|
"""
|
||||||
return tobytes(self.string, encoding=self.getEncoding(), errors=errors)
|
return tobytes(self.string, encoding=self.getEncoding(), errors=errors)
|
||||||
|
|
||||||
def toStr(self, errors='strict'):
|
toStr = toUnicode
|
||||||
if str == bytes:
|
|
||||||
# python 2
|
|
||||||
return self.toBytes(errors)
|
|
||||||
else:
|
|
||||||
# python 3
|
|
||||||
return self.toUnicode(errors)
|
|
||||||
|
|
||||||
def toXML(self, writer, ttFont):
|
def toXML(self, writer, ttFont):
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user