Coder Social home page Coder Social logo

Comments (2)

NGenetzky avatar NGenetzky commented on August 29, 2024

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.

trych avatar trych commented on August 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.