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-Tag: v0.5~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ce322c67e77eb4102ab1feefbf37d7c542ed4ed8;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 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: