Browse Source

MlString: __repr__() now return __str__()

ArnAud 9 years ago
parent
commit
6d3ca3e6a9
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      Lodel/utils/mlstring.py

+ 4
- 0
Lodel/utils/mlstring.py View File

34
                 del(self.translations[lang])
34
                 del(self.translations[lang])
35
         else:
35
         else:
36
             self.translations[lang] = text
36
             self.translations[lang] = text
37
+
38
+    def __repr__(self):
39
+        return self.__str__()
40
+
37
     ## String representation
41
     ## String representation
38
     # @return A json dump of the MlString::translations dict
42
     # @return A json dump of the MlString::translations dict
39
     def __str__(self):
43
     def __str__(self):

Loading…
Cancel
Save