changeset 51372:617af10994fb

py3: fully port doctest to py3
author Manuel Jacob <me@manueljacob.de>
date Sat, 03 Feb 2024 23:45:08 +0100
parents cf1bee12ecdb
children 7d313b259169
files contrib/import-checker.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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