From 3e43205a851dfa5510e7bac4a31d470b89bec5a4 Mon Sep 17 00:00:00 2001 From: Dmytro Katyukha Date: Mon, 23 Jan 2023 12:56:36 +0200 Subject: [PATCH] Fix jinja-cli to be compatible with py3 --- lib/pylib/jinja-cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pylib/jinja-cli.py b/lib/pylib/jinja-cli.py index 61db172..a2792a8 100755 --- a/lib/pylib/jinja-cli.py +++ b/lib/pylib/jinja-cli.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Based on: @@ -125,7 +125,7 @@ def cli(opts, args): output = ustr(output) - sys.stdout.write(output.encode('utf-8')) + sys.stdout.write(output) return 0 # ------------