[Replicant] [replicant-scripts][PATCH] lineageos_wiki: Fix encoding

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Thu May 14 01:57:50 UTC 2020


Without that fix we can have the following error:
  $ python find_lineageos_devices.py
    File "find_lineageos_devices.py", line 228
    SyntaxError: Non-ASCII character '\xc3' in file
    find_lineageos_devices.py on line 228, but no encoding
    declared; see http://python.org/dev/peps/pep-0263/ for
    details

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
 data/lineageos_wiki/find_lineageos_devices.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/data/lineageos_wiki/find_lineageos_devices.py b/data/lineageos_wiki/find_lineageos_devices.py
index e1ce72a..67e09f9 100755
--- a/data/lineageos_wiki/find_lineageos_devices.py
+++ b/data/lineageos_wiki/find_lineageos_devices.py
@@ -1,4 +1,5 @@
 #!/bin/env python
+# -*- coding: utf-8 -*-
 # Program to find devices to support in LineageOS
 # Copyright (C) 2019 Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
 #
-- 
2.26.2



More information about the Replicant mailing list