From: W. Trevor King Date: Tue, 1 Jan 2013 21:31:30 +0000 (-0500) Subject: project: Load files.authors and files.files as booleans X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ab16beff7ee7761485820077dedeff0208b8dcdb;p=update-copyright.git project: Load files.authors and files.files as booleans Because both `bool('yes')` and `bool('no')` are True. --- diff --git a/update_copyright/project.py b/update_copyright/project.py index 2a2c33a..d582263 100644 --- 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.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: