mirror of
https://github.com/GothenburgBitFactory/task-timewarrior-hook.git
synced 2025-06-26 10:54:27 +02:00
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:
parent
2a49f54d60
commit
1e46ca5888
1 changed files with 2 additions and 2 deletions
|
@ -25,13 +25,13 @@
|
||||||
#
|
#
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
from __future__ import print_function
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import json
|
import json
|
||||||
import subprocess
|
import subprocess
|
||||||
import shlex
|
import shlex
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
# Hook should extract all of the following for use as Timewarrior tags:
|
# Hook should extract all of the following for use as Timewarrior tags:
|
||||||
# UUID
|
# UUID
|
||||||
# Project
|
# Project
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue