[PATCH] dim: require Python 3

Jani Nikula jani.nikula at linux.intel.com
Wed Dec 16 10:29:26 UTC 2020


On Wed, 16 Dec 2020, Simon Ser <contact at emersion.fr> wrote:
> 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>

Thanks,

Reviewed-by: Jani Nikula <jani.nikula at intel.com>

> ---
>  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"

-- 
Jani Nikula, Intel Open Source Graphics Center


More information about the dim-tools mailing list