Jelmer Vernooij преди 7 години
родител
ревизия
00d0feb632
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      dulwich/ignore.py

+ 3 - 0
dulwich/ignore.py

@@ -143,6 +143,9 @@ class Pattern(object):
     def __bytes__(self):
         return self.pattern
 
+    def __str__(self):
+        return self.pattern.decode(sys.getfilesystemencoding())
+
     def __eq__(self, other):
         return (type(self) == type(other) and self.pattern == other.pattern)