Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7

This commit is contained in:
rocky
2024-11-09 06:42:51 -05:00
2 changed files with 8 additions and 0 deletions

0
admin-tools/check-3.0-3.2-versions.sh Normal file → Executable file
View File

View File

@@ -181,6 +181,14 @@ def is_lambda_mode(compile_mode):
def print_docstring(self, indent, docstring):
if isinstance(docstring, bytes):
try:
docstring_try = docstring.decode("utf8", errors="backslashreplace")
except Exception:
docstring = str(docstring)
else:
docstring = docstring_try
quote = '"""'
if docstring.find(quote) >= 0:
if docstring.find("'''") == -1: