projects
/
update-copyright.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c68cca
)
project: Load files.authors and files.files as booleans
author
W. Trevor King
<wking@tremily.us>
Tue, 1 Jan 2013 21:31:30 +0000
(16:31 -0500)
committer
W. Trevor King
<wking@tremily.us>
Tue, 1 Jan 2013 21:47:24 +0000
(16:47 -0500)
Because both `bool('yes')` and `bool('no')` are True.
update_copyright/project.py
patch
|
blob
|
history
diff --git
a/update_copyright/project.py
b/update_copyright/project.py
index f76a95c193a9da4555daf09d5acf251e3d5babee..2689430d43563653b6031e210262fc1ef6bc1589 100644
(file)
--- a/
update_copyright/project.py
+++ b/
update_copyright/project.py
@@
-116,11
+116,11
@@
class Project (object):
def _load_files_conf(self, parser):
try:
- self.with_authors = parser.get('files', 'authors')
+ self.with_authors = parser.get
boolean
('files', 'authors')
except _configparser.NoOptionError:
pass
try:
- self.with_files = parser.get('files', 'files')
+ self.with_files = parser.get
boolean
('files', 'files')
except _configparser.NoOptionError:
pass
try: