From 6f5ef4ec86022208ea6a210b650707dc4524f172 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Wed, 12 Aug 2015 23:06:45 +0200 Subject: [PATCH] Rather than restricting to python2, make code python3 compatible --- on-add-pirate | 4 ++-- on-modify-pirate | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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()) -- 2.39.5