Explorar o código

Provide ShaFile.__str__.

Jelmer Vernooij %!s(int64=16) %!d(string=hai) anos
pai
achega
7eb8d99d0a
Modificáronse 1 ficheiros con 3 adicións e 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()