From ab16beff7ee7761485820077dedeff0208b8dcdb Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 1 Jan 2013 16:31:30 -0500 Subject: [PATCH] project: Load files.authors and files.files as booleans Because both `bool('yes')` and `bool('no')` are True. --- update_copyright/project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.26.2