[py] remove not needed imports
This commit is contained in:
parent
38fa924904
commit
82c6ddb986
|
@ -7,7 +7,6 @@ Input file:
|
|||
"""
|
||||
|
||||
import sys
|
||||
import os.path
|
||||
from collections import OrderedDict
|
||||
import packTab
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
"usage: gen-harfbuzzcc.py harfbuzz.cc hb-blob.cc hb-buffer.cc ..."
|
||||
|
||||
import os, re, sys
|
||||
import os, sys
|
||||
|
||||
os.chdir (os.path.dirname (__file__))
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
"usage: gen-hb-version.py 1.0.0 hb-version.h.in hb-version.h"
|
||||
|
||||
import os, re, sys
|
||||
import os, sys
|
||||
|
||||
os.chdir (os.path.dirname (__file__))
|
||||
|
||||
|
|
|
@ -82,7 +82,6 @@ for i,d in enumerate (data):
|
|||
combined = {k:v for k,v in combined.items() if k in ALLOWED_SINGLES or v[2] in ALLOWED_BLOCKS}
|
||||
data = combined
|
||||
del combined
|
||||
num = len (data)
|
||||
|
||||
# Move the outliers NO-BREAK SPACE and DOTTED CIRCLE out
|
||||
singles = {}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os, re, sys, subprocess, shutil, tempfile
|
||||
import os, sys, subprocess, shutil, tempfile
|
||||
|
||||
os.chdir (os.path.dirname (__file__))
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ Input file:
|
|||
* https://unicode.org/Public/UCD/latest/ucdxml/ucd.nounihan.grouped.zip
|
||||
"""
|
||||
|
||||
import os.path, sys, re
|
||||
import sys, re
|
||||
import logging
|
||||
logging.basicConfig(format='%(levelname)s: %(message)s', level=logging.INFO)
|
||||
|
||||
|
|
|
@ -89,7 +89,6 @@ for i,d in enumerate (data):
|
|||
combined = {k:v for k,v in combined.items() if v[3] not in BLACKLISTED_BLOCKS}
|
||||
data = combined
|
||||
del combined
|
||||
num = len (data)
|
||||
|
||||
|
||||
property_names = [
|
||||
|
|
|
@ -14,11 +14,9 @@ Input file:
|
|||
"""
|
||||
|
||||
import collections
|
||||
from html.parser import HTMLParser
|
||||
def write (s):
|
||||
sys.stdout.flush ()
|
||||
sys.stdout.buffer.write (s.encode ('utf-8'))
|
||||
import itertools
|
||||
import sys
|
||||
|
||||
if len (sys.argv) != 3:
|
||||
|
|
Loading…
Reference in New Issue