summaryrefslogtreecommitdiffstats
path: root/scripts/specialtable.py
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-01-14 13:55:00 +0800
committerPeng Wu <alexepico@gmail.com>2013-01-14 13:55:00 +0800
commit22113a32f7bef9010d12110ccb1e36b547c95ef0 (patch)
treeb0bfedc63a126b04e31d93b624aa4d45ec4faa22 /scripts/specialtable.py
parent39e70310d49747ec1ec0890ccdfbf1a77c232338 (diff)
downloadlibpinyin-22113a32f7bef9010d12110ccb1e36b547c95ef0.tar.gz
libpinyin-22113a32f7bef9010d12110ccb1e36b547c95ef0.tar.xz
libpinyin-22113a32f7bef9010d12110ccb1e36b547c95ef0.zip
code re-factor
Diffstat (limited to 'scripts/specialtable.py')
-rw-r--r--scripts/specialtable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/specialtable.py b/scripts/specialtable.py
index ead5300..5d1d599 100644
--- a/scripts/specialtable.py
+++ b/scripts/specialtable.py
@@ -36,7 +36,7 @@ def load_phrase(filename):
phrasefile = open(filename, "r")
for line in phrasefile.readlines():
line = line.rstrip(os.linesep)
- (pinyin_str, freq) = line.split(' ', 1)
+ (pinyin_str, freq) = line.split(None, 1)
freq = int(math.floor(float(freq)))
if 0 == freq:
#print(pinyin_str)