diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2013-11-27 05:47:34 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2013-11-27 14:01:44 -0500 |
commit | 14fb031125b773f0a15eb19be4f02ed8540b2db6 (patch) | |
tree | 801df6779b648ad9dff85efd2aea9d4d3eab67b4 /Lib/fontTools/ttLib/tables/_n_a_m_e.py | |
parent | b774f9f684c5a0f91f5fa177c9a461968789123f (diff) | |
download | fonttools-14fb031125b773f0a15eb19be4f02ed8540b2db6.tar.gz |
Remove most uses of module string
Diffstat (limited to 'Lib/fontTools/ttLib/tables/_n_a_m_e.py')
-rw-r--r-- | Lib/fontTools/ttLib/tables/_n_a_m_e.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/fontTools/ttLib/tables/_n_a_m_e.py b/Lib/fontTools/ttLib/tables/_n_a_m_e.py index 4a09413f..6bbb43a4 100644 --- a/Lib/fontTools/ttLib/tables/_n_a_m_e.py +++ b/Lib/fontTools/ttLib/tables/_n_a_m_e.py @@ -2,7 +2,6 @@ from . import DefaultTable import struct from fontTools.misc import sstruct from fontTools.misc.textTools import safeEval -import string nameRecordFormat = """ > # big endian @@ -129,7 +128,7 @@ class NameRecord: s = s.strip() self.string = s.encode("utf_16_be") else: - s = string.strip(string.join(content, "")) + s = ''.join(content).strip() self.string = unicode(s, "utf8").encode("latin1") def __cmp__(self, other): |