# HG changeset patch # User Manuel Jacob # Date 1707000308 -3600 # Node ID 617af10994fb675e75e33da35c264fec6e27ed38 # Parent cf1bee12ecdb44a818a07109ca5b3a33e98fcf57 py3: fully port doctest to py3 diff -r cf1bee12ecdb -r 617af10994fb contrib/import-checker.py --- a/contrib/import-checker.py Fri Feb 02 04:03:15 2024 +0100 +++ b/contrib/import-checker.py Sat Feb 03 23:45:08 2024 +0100 @@ -195,9 +195,8 @@ def list_stdlib_modules(): """List the modules present in the stdlib. - >>> py3 = sys.version_info[0] >= 3 >>> mods = set(list_stdlib_modules()) - >>> 'BaseHTTPServer' in mods or py3 + >>> 'http' in mods True os.path isn't really a module, so it's missing: @@ -214,7 +213,7 @@ >>> 'collections' in mods True - >>> 'cStringIO' in mods or py3 + >>> 'array' in mods True >>> 'cffi' in mods