2
0
Jelmer Vernooij 16 жил өмнө
parent
commit
7eb8d99d0a
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  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()