From 3b4297130d5a42a0f5080d73deff4ce7ddbfda37 Mon Sep 17 00:00:00 2001 From: ospalh Date: Wed, 17 Oct 2012 18:05:50 +0200 Subject: [PATCH] ce --- dehashilator/romaji.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dehashilator/romaji.py b/dehashilator/romaji.py index 1a179fe9a..f49552c73 100755 --- a/dehashilator/romaji.py +++ b/dehashilator/romaji.py @@ -94,8 +94,8 @@ def _setup(): _gyou[g.lower()].append(kana.lower()) #TODO: set up dann table (u,ku,gu,su,zu,tsu,du,nu,fu,...) # find the basic kana and chiisai kana from their unicode data names - regular = compile(r'(HIRAGANA|KATAKANA) (LETTER) (.+)') - chiisai = compile(r'(HIRAGANA|KATAKANA) (SMALL LETTER) (.+)') + regular = re.compile(r'(HIRAGANA|KATAKANA) (LETTER) (.+)') + chiisai = re.compile(r'(HIRAGANA|KATAKANA) (SMALL LETTER) (.+)') for point in range(0x3040, 0x30FF): char = unichr(point) for pattern in [regular, chiisai]: