E4Gui/E4Action.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
20 """ 20 """
21 def __init__(self, error): 21 def __init__(self, error):
22 """ 22 """
23 Constructor 23 Constructor
24 """ 24 """
25 self.errorMessage = unicode(error) 25 self.errorMessage = str(error)
26 26
27 def __repr__(self): 27 def __repr__(self):
28 """ 28 """
29 Private method returning a representation of the exception. 29 Private method returning a representation of the exception.
30 30
31 @return string representing the error message 31 @return string representing the error message
32 """ 32 """
33 return unicode(self.errorMessage) 33 return str(self.errorMessage)
34 34
35 def __str__(self): 35 def __str__(self):
36 """ 36 """
37 Private method returning a string representation of the exception. 37 Private method returning a string representation of the exception.
38 38

eric ide

mercurial