Explorar el Código

Provide ShaFile.__str__.

Jelmer Vernooij hace 16 años
padre
commit
7eb8d99d0a
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      dulwich/objects.py

+ 3 - 0
dulwich/objects.py

@@ -117,6 +117,9 @@ class ShaFile(object):
             self.serialize()
         return self._text
 
+    def __str__(self):
+        return self.as_raw_string()
+
     def as_pretty_string(self):
         return self.as_raw_string()