From ce322c67e77eb4102ab1feefbf37d7c542ed4ed8 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 f76a95c..2689430 100644 --- a/update_copyright/project.py +++ b/update_copyright/project.py @@ -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: -- 2.26.2