You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
Merge hell
This commit is contained in:
@@ -181,14 +181,6 @@ def is_lambda_mode(compile_mode):
|
|||||||
|
|
||||||
|
|
||||||
def print_docstring(self, indent, docstring):
|
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 = '"""'
|
quote = '"""'
|
||||||
if docstring.find(quote) >= 0:
|
if docstring.find(quote) >= 0:
|
||||||
if docstring.find("'''") == -1:
|
if docstring.find("'''") == -1:
|
||||||
|
Reference in New Issue
Block a user