From: Brian Curtin Date: Wed, 31 Mar 2010 17:36:09 +0000 (+0000) Subject: Correct what was intended to be a single-tuple to just be a != check. X-Git-Tag: v2.7b1~174 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe4900c0bc477479b24c5bb374984d6a873a3db7;p=thirdparty%2FPython%2Fcpython.git Correct what was intended to be a single-tuple to just be a != check. Thanks to Éric Araujo for noticing that. --- diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 2c954de3b46f..13b4904b25d0 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -357,7 +357,7 @@ class Doc: 'thread', 'zipimport') or (file.startswith(basedir) and not file.startswith(os.path.join(basedir, 'site-packages')))) and - object.__name__ not in ('xml.etree')): + object.__name__ != 'xml.etree'): if docloc.startswith("http://"): docloc = "%s/%s" % (docloc.rstrip("/"), object.__name__) else: