From ae255c15051600f5e0a530dd3efc20fa95592bf2 Mon Sep 17 00:00:00 2001 From: Aleksey Lim Date: Tue, 14 Apr 2009 21:43:42 +0000 Subject: Apply HablarConSara-3.xo changes --- (limited to 'Speak.activity/voice.py') diff --git a/Speak.activity/voice.py b/Speak.activity/voice.py index a3bb1c6..fda72dc 100644 --- a/Speak.activity/voice.py +++ b/Speak.activity/voice.py @@ -101,10 +101,10 @@ def defaultVoice(): def fit(a,b): "Compare two language ids to see if they are similar." - as = re.split(r'[^a-z]+', a.lower()) + as_ = re.split(r'[^a-z]+', a.lower()) bs = re.split(r'[^a-z]+', b.lower()) - for count in range(0, min(len(as),len(bs))): - if as[count] != bs[count]: + for count in range(0, min(len(as_),len(bs))): + if as_[count] != bs[count]: count -= 1 break return count -- cgit v0.9.1