diff options
author | Aleksey Lim <alsroot@member.fsf.org> | 2009-02-04 15:10:41 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@member.fsf.org> | 2009-02-04 15:10:41 (GMT) |
commit | b17d02356c8bba29e0a550127bf9897476f6be0d (patch) | |
tree | 52c4fa5b26758137c8af1b9ffe57ef90fdddb2a3 /Speak.activity/voice.py | |
parent | 1fda747e34a4583efffadb2d0cbd44d176b86789 (diff) |
Fix python26 syntax issues
Diffstat (limited to 'Speak.activity/voice.py')
-rw-r--r-- | Speak.activity/voice.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |