projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd829c9
)
GitModifier: use __getitem__ to fetch date
author
Guido Günther
<agx@sigxcpu.org>
Sun, 29 Jul 2012 07:12:04 +0000
(09:12 +0200)
committer
Guido 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
patch
|
blob
|
history
diff --git
a/gbp/git/modifier.py
b/gbp/git/modifier.py
index
ad5ee7a
..
a851f47
100644
(file)
--- a/
gbp/git/modifier.py
+++ b/
gbp/git/modifier.py
@@
-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