From: Tomas Babej Date: Wed, 12 Aug 2015 21:06:45 +0000 (+0200) Subject: Rather than restricting to python2, make code python3 compatible X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/6f5ef4ec86022208ea6a210b650707dc4524f172?hp=--cc;pf=etc Rather than restricting to python2, make code python3 compatible --- 6f5ef4ec86022208ea6a210b650707dc4524f172 diff --git a/on-add-pirate b/on-add-pirate index 8f61758..abf9ace 100755 --- a/on-add-pirate +++ b/on-add-pirate @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/python import glob import imp @@ -40,4 +40,4 @@ task = Task.from_input() for hook in find_hooks('pirate_add'): hook(task) -print task.export_data() +print(task.export_data()) diff --git a/on-modify-pirate b/on-modify-pirate index 5093d18..61bb8f6 100755 --- a/on-modify-pirate +++ b/on-modify-pirate @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/python import glob import imp @@ -40,4 +40,4 @@ task = Task.from_input() for hook in find_hooks('pirate_mod'): hook(task) -print task.export_data() +print(task.export_data())