insert takes 2 arguments

In python 3.4 and 2.7 I get an error  "insert takes 2 arguments". This PR fixes it, but I had to assume it was intended to be an append.
This commit is contained in:
M Clark
2016-10-20 08:27:40 +08:00
committed by GitHub
parent 1b1903bc0b
commit 9e212125b1
+2 -2
View File
@@ -312,8 +312,8 @@ def _parsePronunciation(pronunciationStr):
stressedPhoneList.insert(0, j)
break
elif u'ˌ' in phone:
stressedSyllableList.insert(i)
stressedPhoneList.insert(j)
stressedSyllableList.append(i)
stressedPhoneList.append(j)
return syllableList, stressedSyllableList, stressedPhoneList