|
From: <fri...@us...> - 2008-12-24 05:35:07
|
Revision: 9634
http://zaf.svn.sourceforge.net/zaf/?rev=9634&view=rev
Author: friedelwolff
Date: 2008-12-24 05:34:59 +0000 (Wed, 24 Dec 2008)
Log Message:
-----------
Test for some some typos in the argument dictionary. Use shorthand in remove_duplicates()
Modified Paths:
--------------
trunk/dict/zu/hunspell/hunspell_format.py
Modified: trunk/dict/zu/hunspell/hunspell_format.py
===================================================================
--- trunk/dict/zu/hunspell/hunspell_format.py 2008-12-23 19:24:42 UTC (rev 9633)
+++ trunk/dict/zu/hunspell/hunspell_format.py 2008-12-24 05:34:59 UTC (rev 9634)
@@ -123,7 +123,7 @@
rules = self.rules #XXX: not making a copy!
if not rules:
return rules
- self.rules.sort(key=lambda x: x._sort_key())
+ rules.sort(key=lambda x: x._sort_key())
trimmed = [rules[0]]
for i in rules[1:]:
@@ -136,6 +136,8 @@
new_rule = Affix()
new_rule.__dict__.update(kwargs)
assert "group" not in kwargs
+ assert "suffix" not in kwargs
+ assert "prefix" not in kwargs
new_rule.group = self
self.rules.append(new_rule)
return new_rule
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|