Comments (2)
Here is a patch to ignore it until action is taken.
From 3bfa1e685e14283ba901ed3b576a8e629684e15d Mon Sep 17 00:00:00 2001
From: Nathan Genetzky <[email protected]>
Date: Tue, 4 Aug 2020 08:59:15 -0500
Subject: [PATCH] python: Add shebang for 'ignore::DeprecationWarning'
---
on-add-pirate | 7 ++++++-
on-modify-pirate | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/on-add-pirate b/on-add-pirate
index 9fae1c4..d8ee94f 100755
--- a/on-add-pirate
+++ b/on-add-pirate
@@ -1,4 +1,9 @@
-#!/usr/bin/env python
+#!/usr/bin/env -S python3 -W ignore::DeprecationWarning
+#
+# Although not exactly portable, starting with coreutils 8.30: The
+# -S/--split-string options enable using multiple arguments on the first one of
+# scripts (shebang line, ‘#!’).
+# [ref](https://www.gnu.org/software/coreutils/manual/html_node/env-invocation.html#g_t_002dS_002f_002d_002dsplit_002dstring-usage-in-scripts)
import glob
import imp
diff --git a/on-modify-pirate b/on-modify-pirate
index b7b4986..298e82a 100755
--- a/on-modify-pirate
+++ b/on-modify-pirate
@@ -1,4 +1,9 @@
-#!/usr/bin/env python
+#!/usr/bin/env -S python3 -W ignore::DeprecationWarning
+#
+# Although not exactly portable, starting with coreutils 8.30: The
+# -S/--split-string options enable using multiple arguments on the first one of
+# scripts (shebang line, ‘#!’).
+# [ref](https://www.gnu.org/software/coreutils/manual/html_node/env-invocation.html#g_t_002dS_002f_002d_002dsplit_002dstring-usage-in-scripts)
import glob
import imp
--
2.26.2
from taskpirate.
Here is a patch to ignore it until action is taken.
Thanks! Would be great if this could be generally fixed though. As a python novice, this is over my head unfortunately. Nvm, I overlooked heiderich's PR above.
from taskpirate.
Related Issues (12)
- shebang shouldn't use absulate path to python HOT 1
- Output feedback text HOT 1
- Is it supposed to work with python 2? HOT 1
- Taskpirate modifies tag format HOT 1
- Timezone offset does not match system offset HOT 1
- Problems with Unicode HOT 1
- task undo on 2.6.0 throws json task error HOT 8
- Hook Error: Expected feedback from failing hook script (when using $XDG) HOT 4
- Getting errors in hook when running task command from an external script HOT 1
- I think install instructions are outdated HOT 1
- Tasklib still incompatible with default timewarrior hook HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taskpirate.