]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct what was intended to be a single-tuple to just be a != check.
authorBrian Curtin <brian.curtin@gmail.com>
Wed, 31 Mar 2010 17:36:09 +0000 (17:36 +0000)
committerBrian Curtin <brian.curtin@gmail.com>
Wed, 31 Mar 2010 17:36:09 +0000 (17:36 +0000)
Thanks to Éric Araujo for noticing that.

Lib/pydoc.py

index 2c954de3b46f4f94cec97c38860d0c4d9a64269f..13b4904b25d0ed9ca5149d3e53f21383924ec751 100755 (executable)
@@ -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: