From e0fd27a6a37e242e2838c3fa7b712c81ed1c2f26 Mon Sep 17 00:00:00 2001 From: Philip Tzou Date: Mon, 1 Feb 2010 20:39:17 +0000 Subject: [PATCH] Fix a bug found in Makefile.py. --- includes/ZhConversion.php | 3 +-- includes/zhtable/Makefile.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/ZhConversion.php b/includes/ZhConversion.php index 9b6fc36fb6..e559b6cb13 100644 --- a/includes/ZhConversion.php +++ b/includes/ZhConversion.php @@ -2745,7 +2745,6 @@ $zh2Hant = array( '𫛢' => '鸋', '𫛶' => '鶒', '𫛸' => '鶗', -'' => '', '0多只' => '0多隻', '0天后' => '0天後', '0只' => '0隻', @@ -18021,4 +18020,4 @@ $zh2SG = array( '笨豬跳' => '绑紧跳', '蹦极跳' => '绑紧跳', '笑星' => '谐星', -); \ No newline at end of file +); diff --git a/includes/zhtable/Makefile.py b/includes/zhtable/Makefile.py index ea78fbd060..26e229df69 100644 --- a/includes/zhtable/Makefile.py +++ b/includes/zhtable/Makefile.py @@ -255,14 +255,14 @@ def CustomRules( dest ): return ret def GetPHPArray( table ): - lines = ['\'%s\' => \'%s\',' % (f, t) for (f, t) in table] + lines = ['\'%s\' => \'%s\',' % (f, t) for (f, t) in table if f and t] #lines = ['"%s"=>"%s",' % (f, t) for (f, t) in table] return '\n'.join(lines) def RemoveSameChar( src_table ): dst_table = {} for f, t in src_table.items(): - if not f == t: + if f != t: dst_table[f] = t return dst_table -- 2.20.1