mirror of
https://github.com/wassname/pysle.git
synced 2026-06-27 16:10:05 +08:00
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:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user