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
```
This commit is contained in:
Dennis Schridde 2019-07-10 19:37:57 +02:00 committed by lauft
parent 6c1298ea4e
commit 5b53f5c3ba

View file

@ -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