summaryrefslogtreecommitdiffstats
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
parent39e70310d49747ec1ec0890ccdfbf1a77c232338 (diff)
downloadlibpinyin-22113a32f7bef9010d12110ccb1e36b547c95ef0.zip
libpinyin-22113a32f7bef9010d12110ccb1e36b547c95ef0.tar.gz
libpinyin-22113a32f7bef9010d12110ccb1e36b547c95ef0.tar.xz
code re-factor
-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)