From 9e212125b1dea6d1de7edae7b00fb91be5115bb4 Mon Sep 17 00:00:00 2001 From: M Clark Date: Thu, 20 Oct 2016 08:27:40 +0800 Subject: [PATCH] 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. --- pysle/isletool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pysle/isletool.py b/pysle/isletool.py index 728cb68..6edde67 100644 --- a/pysle/isletool.py +++ b/pysle/isletool.py @@ -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