[tor-commits] [stem/master] bsd, mac and slackware don't have --encoding arg, so we should use negation

atagar at torproject.org atagar at torproject.org
Mon Sep 11 16:42:03 UTC 2017


commit b528fe436411ee7b001214fef386dc7a45163197
Author: Edmund Wong <ewongbb at pw-wspx.org>
Date:   Mon Sep 11 11:16:02 2017 +0800

    bsd, mac and slackware don't have --encoding arg, so we should use negation
---
 stem/manual.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stem/manual.py b/stem/manual.py
index e436c866..2dd55747 100644
--- a/stem/manual.py
+++ b/stem/manual.py
@@ -84,7 +84,7 @@ Category = stem.util.enum.Enum('GENERAL', 'CLIENT', 'RELAY', 'DIRECTORY', 'AUTHO
 GITWEB_MANUAL_URL = 'https://gitweb.torproject.org/tor.git/plain/doc/tor.1.txt'
 CACHE_PATH = os.path.join(os.path.dirname(__file__), 'cached_tor_manual.sqlite')
 DATABASE = None  # cache database connections
-HAS_ENCODING_ARG = stem.util.system.is_mac() or stem.util.system.is_bsd() or stem.util.system.is_slackware()
+HAS_ENCODING_ARG = not stem.util.system.is_mac() and not stem.util.system.is_bsd() and not stem.util.system.is_slackware()
 
 SCHEMA_VERSION = 1  # version of our scheme, bump this if you change the following
 SCHEMA = (



More information about the tor-commits mailing list