Message339293
Following code snipped leads to an IndexError in the last line.
It basically puts EN_cmw into a dict where is a split on '->'.
It avoid the bug you can change the 1 into -1.
(By definition it shouldnt make a difference)
EN_cmw = '''abandonned->abandoned
aberation->aberration
abilityes->abilities
abilties->abilities
abilty->ability
abondon->abandon
abbout->about
'''
EN_cmw = EN_cmw.split('\n')
EN_cmw = [string.strip() for string in EN_cmw]
{
line.split('->')[0]: line.split('->')[1] for line in EN_cmw
} |
|
Date |
User |
Action |
Args |
2019-04-01 14:25:39 | Benjamin Krala | set | recipients:
+ Benjamin Krala |
2019-04-01 14:25:39 | Benjamin Krala | set | messageid: <1554128739.17.0.108677031645.issue36498@roundup.psfhosted.org> |
2019-04-01 14:25:39 | Benjamin Krala | link | issue36498 messages |
2019-04-01 14:25:39 | Benjamin Krala | create | |
|