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:
e873cab
)
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:31:30 +0000
(16:31 -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 2a2c33aad078e1e5ef55eedb75e2b0358b6d8794..d582263b12f544e0ee96dc069fe3fac599db8dee 100644
(file)
--- a/
update_copyright/project.py
+++ b/
update_copyright/project.py
@@
-112,11
+112,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: