From 1e46ca5888dd1db50dc32fae66e5df4276014e57 Mon Sep 17 00:00:00 2001 From: Dennis Schridde <51333502+fdcds@users.noreply.github.com> Date: Wed, 10 Jul 2019 19:37:57 +0200 Subject: [PATCH] on-modify.timewarrior: Fix "from __future__ imports must occur at the beginning of the file" Fixes the following error with Python 3.6.8: ``` File "$HOME/.task/hooks/on-modify.timewarrior", line 33 from __future__ import print_function SyntaxError: from __future__ imports must occur at the beginning of the file ``` --- on-modify.timewarrior | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/on-modify.timewarrior b/on-modify.timewarrior index 94eb6ac..1f226ec 100755 --- a/on-modify.timewarrior +++ b/on-modify.timewarrior @@ -25,13 +25,13 @@ # ############################################################################### +from __future__ import print_function + import sys import json import subprocess import shlex -from __future__ import print_function - # Hook should extract all of the following for use as Timewarrior tags: # UUID # Project