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.3-to-3.5' into python-3.0-to-3.2
This commit is contained in:
@@ -153,7 +153,12 @@ def is_lambda_mode(compile_mode: str) -> bool:
|
|||||||
|
|
||||||
def print_docstring(self, indent, docstring):
|
def print_docstring(self, indent, docstring):
|
||||||
if isinstance(docstring, bytes):
|
if isinstance(docstring, bytes):
|
||||||
docstring = docstring.decode("utf8", errors="backslashreplace")
|
try:
|
||||||
|
docstring_try = docstring.decode("utf8", errors="backslashreplace")
|
||||||
|
except Exception:
|
||||||
|
docstring = str(docstring)
|
||||||
|
else:
|
||||||
|
docstring = docstring_try
|
||||||
|
|
||||||
quote = '"""'
|
quote = '"""'
|
||||||
if docstring.find(quote) >= 0:
|
if docstring.find(quote) >= 0:
|
||||||
|
Reference in New Issue
Block a user