You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Merge branch 'python-3.0-to-3.2' into python-2.4-to-2.7
This commit is contained in:
0
admin-tools/check-3.0-3.2-versions.sh
Normal file → Executable file
0
admin-tools/check-3.0-3.2-versions.sh
Normal file → Executable 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:
|
||||
|
Reference in New Issue
Block a user