[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/develop] Make init hook compatible with Python 3.
commit 04fd047378022592306b76b5a68ddf8fd2df39a0
Author: Philipp Winter <phw@xxxxxxxxx>
Date: Tue Jun 16 10:00:34 2020 -0700
Make init hook compatible with Python 3.
Running `make pylint` now works again.
This fixes issue #33647.
---
.pylintrc | 2 +-
CHANGELOG | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.pylintrc b/.pylintrc
index 8bf60a0..5532cd7 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -6,7 +6,7 @@
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook='import sys,os; venv = os.environ.get("VIRTUAL_ENV"); v = os.path.join(venv, "lib", "python" + str(sys.version_info.major) + "." + str(sys.version_info.micro), "site-packages") if venv is not None else None; sys.path.insert(0, v);'
-init-hook="import sys,os;a=os.getcwd();print a;sys.path.insert(0, a));"
+init-hook="import sys,os;a=os.getcwd();print(a);sys.path.insert(0, a);"
# Profiled execution.
profile=no
diff --git a/CHANGELOG b/CHANGELOG
index 1e6e730..860cbda 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+ * FIXES https://bugs.torproject.org/33647
+ Fix broken link in the README and fix our Makefile's pylint target.
+
Changes in version 0.11.0 - 2020-07-08
* FIXES https://bugs.torproject.org/31422
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits