[PATCH] dim: require Python 3

Simon Ser contact at emersion.fr
Wed Dec 16 09:28:41 UTC 2020


Python 2 has been end-of-life'd, and d79c57846950 ("dim: fix handling of 8-bit
non-UTF-8 messages") relies on functions introduced in Python 3.2.

Signed-off-by: Simon Ser <contact at emersion.fr>
---
 dim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dim b/dim
index f4366ea165a2..01bba3129be4 100755
--- a/dim
+++ b/dim
@@ -76,7 +76,7 @@ dim=$(basename $0)
 dim_today=$(date +%Y-%m-%d)
 dim_timestamp="$(date --utc +%Yy-%mm-%dd-%Hh-%Mm-%Ss) UTC"
 
-dim_python=$(command -v python || command -v python3)
+dim_python=$(command -v python3)
 
 dim_fdo_cookie="--push-option fdo.pushedWithDim=this-was-pushed-with-dim-and-not-manually"
 
-- 
2.29.2




More information about the dim-tools mailing list