[py] remove not needed imports

This commit is contained in:
Ebrahim Byagowi 2020-07-03 15:09:10 +04:30
parent 38fa924904
commit 82c6ddb986
8 changed files with 4 additions and 9 deletions

View File

@ -7,7 +7,6 @@ Input file:
"""
import sys
import os.path
from collections import OrderedDict
import packTab

View File

@ -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__))

View 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__))

View 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 = {}

View File

@ -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__))

View 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)

View File

@ -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 = [

View File

@ -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: