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:31:30 +0000 (16:31 -0500)
Because both `bool('yes')` and `bool('no')` are True.

update_copyright/project.py

index 2a2c33aad078e1e5ef55eedb75e2b0358b6d8794..d582263b12f544e0ee96dc069fe3fac599db8dee 100644 (file)
@@ -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.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: