mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +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
6c1298ea4e
commit
5b53f5c3ba
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue