libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r1311126 - /libcloud/trunk/libcloud/common/types.py
Date Mon, 09 Apr 2012 03:36:19 GMT
Author: tomaz
Date: Mon Apr  9 03:36:18 2012
New Revision: 1311126

URL: http://svn.apache.org/viewvc?rev=1311126&view=rev
Log:
Add __repr__ to more common types.

Modified:
    libcloud/trunk/libcloud/common/types.py

Modified: libcloud/trunk/libcloud/common/types.py
URL: http://svn.apache.org/viewvc/libcloud/trunk/libcloud/common/types.py?rev=1311126&r1=1311125&r2=1311126&view=diff
==============================================================================
--- libcloud/trunk/libcloud/common/types.py (original)
+++ libcloud/trunk/libcloud/common/types.py Mon Apr  9 03:36:18 2012
@@ -49,6 +49,9 @@ class MalformedResponseError(LibcloudErr
         self.driver = driver
         self.body = body
 
+    def __str__(self):
+        return self.__repr__()
+
     def __repr__(self):
         return ("<MalformedResponseException in "
                 + repr(self.driver)
@@ -66,6 +69,9 @@ class InvalidCredsError(LibcloudError):
         self.value = value
         self.driver = driver
 
+    def __str__(self):
+        return self.__repr__()
+
     def __repr__(self):
         return repr(self.value)
 



Mime
View raw message