From 6ab6279bd9b60e7d3b875d253825cd9acdfb27d8 Mon Sep 17 00:00:00 2001 From: "noname45688@gmail.com" Date: Tue, 30 Jun 2020 16:33:08 -0400 Subject: [PATCH] Updating to Python 3 --- contrib/devtools/fix-copyright-headers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/devtools/fix-copyright-headers.py b/contrib/devtools/fix-copyright-headers.py index 5e8495254..14b6de706 100755 --- a/contrib/devtools/fix-copyright-headers.py +++ b/contrib/devtools/fix-copyright-headers.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ''' Run this script inside of src/ and it will look for all the files that were changed this year that still have the last year in the @@ -46,7 +46,7 @@ for extension in extensions: filePath = os.getcwd() + filePath modifiedTime = getLastGitModifiedDate(filePath) if len(modifiedTime) > 0 and str(year) in modifiedTime: - print n,"Last Git Modified: ", modifiedTime, " - ", filePath + print(n,"Last Git Modified: ", modifiedTime, " - ", filePath) os.popen(command % (last_year,year,filePath)) n = n + 1