Blob Blame History Raw
--- suomi-malaga-1.19/voikko/generate_lex.py.~1~	2015-10-03 16:53:40.000000000 +0200
+++ suomi-malaga-1.19/voikko/generate_lex.py	2018-07-03 08:37:12.702612632 +0200
@@ -24,7 +24,6 @@
 import voikkoutils
 import xml.dom.minidom
 import codecs
-from string import rfind
 
 flag_attributes = voikkoutils.readFlagAttributes(generate_lex_common.VOCABULARY_DATA + u"/flags.txt")
 
@@ -218,7 +217,7 @@
 	# then all multi part forms must end with a part contained in the single part set.
 	if singlePartForms:
 		for multiPartForm in multiPartForms:
-			lastPart = multiPartForm[max(rfind(multiPartForm, u"="), rfind(multiPartForm, u"|"), rfind(multiPartForm, u"-")) + 1:]
+			lastPart = multiPartForm[max(multiPartForm.rfind(u"="), multiPartForm.rfind(u"|"), multiPartForm.rfind(u"-")) + 1:]
 			if lastPart not in singlePartForms:
 				sys.stderr.write(u"ERROR: suspicious alternative spelling: %s\n" % multiPartForm)
 				sys.exit(1)