diff --git a/decompyle3/semantics/transform.py b/decompyle3/semantics/transform.py index c3e5e85d..7a68ea59 100644 --- a/decompyle3/semantics/transform.py +++ b/decompyle3/semantics/transform.py @@ -165,6 +165,7 @@ def n_mkfunc(self, node): if isinstance(mkfunc_pattr, tuple): assert isinstance(mkfunc_pattr, tuple) assert len(mkfunc_pattr) == 4 and isinstance(mkfunc_pattr, int) + if len(code.co_consts) > 0 and isinstance(code.co_consts[0], str): docstring_node = SyntaxTree( "docstring",