project: Load files.authors and files.files as booleans
authorW. Trevor King <wking@tremily.us>
Tue, 1 Jan 2013 21:31:30 +0000 (16:31 -0500)
committerW. 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

index f76a95c193a9da4555daf09d5acf251e3d5babee..2689430d43563653b6031e210262fc1ef6bc1589 100644 (file)
@@ -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.getboolean('files', 'authors')
         except _configparser.NoOptionError:
             pass
         try:
-            self.with_files = parser.get('files', 'files')
+            self.with_files = parser.getboolean('files', 'files')
         except _configparser.NoOptionError:
             pass
         try: