From d841f5213b20a68dc9c211815b5cad983930518d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 1 Jan 2013 16:32:44 -0500 Subject: [PATCH] update-copyright.py: Use the configured files.authors and files.files Rather than reading them into Project.with_authors and Project.with_files and then ignoring them. This means that if you don't want an AUTHOR file, you can disable it in your .update-copyright.conf and then skip `--no-authors` on the command line. --- bin/update-copyright.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/update-copyright.py b/bin/update-copyright.py index 6fff076..a4004d8 100755 --- a/bin/update-copyright.py +++ b/bin/update-copyright.py @@ -63,9 +63,9 @@ if __name__ == '__main__': project = Project(root=_os_path.dirname(_os_path.abspath(options.config))) project.load_config(open(options.config, 'r')) - if options.authors: + if options.authors and project.with_authors: project.update_authors(dry_run=options.dry_run) - if options.files: + if options.files and project.with_files: project.update_files(files=args, dry_run=options.dry_run) - if options.pyfile: + if options.pyfile and project._pyfile: project.update_pyfile(dry_run=options.dry_run) -- 2.26.2