From 5ab9b86e56849dc389d7ab180c40d5f6213fbec7 Mon Sep 17 00:00:00 2001 From: Thomas Lauf Date: Sun, 23 Feb 2020 21:32:39 +0100 Subject: [PATCH] Set python version explicitly to python3 - Closes #259 Signed-off-by: Thomas Lauf --- doc/holidays/refresh | 6 ++++-- ext/csv.py | 4 ++-- ext/debug.py | 2 +- ext/on-modify.timewarrior | 5 +++-- ext/totals.py | 3 ++- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/doc/holidays/refresh b/doc/holidays/refresh index a68e64a6..622b4662 100755 --- a/doc/holidays/refresh +++ b/doc/holidays/refresh @@ -1,4 +1,5 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 + ############################################################################### # # Copyright 2016, 2018 - 2019, Thomas Lauf, Paul Beckingham, Federico Hernandez. @@ -25,7 +26,6 @@ # ############################################################################### -import argparse import datetime import json import os @@ -33,6 +33,8 @@ import re from urllib.error import HTTPError from urllib.request import urlopen +import argparse + def enumerate(path): if not os.path.exists(path): diff --git a/ext/csv.py b/ext/csv.py index 8fe43fc5..f137e741 100755 --- a/ext/csv.py +++ b/ext/csv.py @@ -1,7 +1,7 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 -import sys import json +import sys # Skip the configuration settings. for line in sys.stdin: diff --git a/ext/debug.py b/ext/debug.py index 0c76f910..8937bb64 100755 --- a/ext/debug.py +++ b/ext/debug.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys diff --git a/ext/on-modify.timewarrior b/ext/on-modify.timewarrior index b0037d8f..d53d5791 100755 --- a/ext/on-modify.timewarrior +++ b/ext/on-modify.timewarrior @@ -1,4 +1,5 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 + ############################################################################### # # Copyright 2015 - 2016, Paul Beckingham, Federico Hernandez. @@ -27,9 +28,9 @@ from __future__ import print_function -import sys import json import subprocess +import sys # Hook should extract all of the following for use as Timewarrior tags: # UUID diff --git a/ext/totals.py b/ext/totals.py index 3be8767e..87a74f1f 100755 --- a/ext/totals.py +++ b/ext/totals.py @@ -1,4 +1,5 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 + ############################################################################### # # Copyright 2015 - 2016, Paul Beckingham, Federico Hernandez.