From 7b5a640d1f24900825d80a2a8189f128cad1f0eb Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 9 Dec 2019 11:35:22 +0100 Subject: [PATCH] Minor update --- extra/shutils/pyflakes.sh | 2 +- lib/core/convert.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/extra/shutils/pyflakes.sh b/extra/shutils/pyflakes.sh index e4ea94d74..cbdbe80c9 100755 --- a/extra/shutils/pyflakes.sh +++ b/extra/shutils/pyflakes.sh @@ -4,4 +4,4 @@ # See the file 'LICENSE' for copying permission # Runs pyflakes on all python files (prerequisite: apt-get install pyflakes) -find . -wholename "./thirdparty" -prune -o -type f -iname "*.py" -exec pyflakes '{}' \; | grep -v "redefines '_'" +find . -wholename "./thirdparty" -prune -o -type f -iname "*.py" -exec pyflakes3 '{}' \; | grep -v "redefines '_'" diff --git a/lib/core/convert.py b/lib/core/convert.py index 9551a5e43..d5d24b3ed 100644 --- a/lib/core/convert.py +++ b/lib/core/convert.py @@ -19,6 +19,7 @@ import re import sys from lib.core.bigarray import BigArray +from lib.core.compat import xrange from lib.core.data import conf from lib.core.data import kb from lib.core.settings import INVALID_UNICODE_PRIVATE_AREA