GitModifier: use __getitem__ to fetch date
authorGuido Günther <agx@sigxcpu.org>
Sun, 29 Jul 2012 07:12:04 +0000 (09:12 +0200)
committerGuido Günther <agx@sigxcpu.org>
Sun, 29 Jul 2012 07:12:04 +0000 (09:12 +0200)
instead of accessing __dict__ directly which only has _date.

gbp/git/modifier.py

index ad5ee7a..a851f47 100644 (file)
@@ -137,7 +137,7 @@ class GitModifier(object):
     def items(self):
         items = []
         for key in self.keys():
-            val = self.__dict__[key]
+            val = self.__getitem__(key)
             if val:
                 items.append((key, val))
         return items