raise Exception, "text" --> raise Exception("text")
To have the code work in python3, we need to convert all occurences of raise Exception, "text" to be proper functions. This style also adheres to PEP8. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
@ -58,7 +58,7 @@ def flagsplit(string):
|
||||
['FLAGS,'(\\Seen Old)','UID', '4807']
|
||||
"""
|
||||
if string[0] != '(' or string[-1] != ')':
|
||||
raise ValueError, "Passed string '%s' is not a flag list" % string
|
||||
raise ValueError("Passed string '%s' is not a flag list" % string)
|
||||
return imapsplit(string[1:-1])
|
||||
|
||||
def options2hash(list):
|
||||
|
Reference in New Issue
Block a user