diff --git a/test/stdlib/3.5-exclude.sh b/test/stdlib/3.5-exclude.sh index 404e419c..02e4cba3 100644 --- a/test/stdlib/3.5-exclude.sh +++ b/test/stdlib/3.5-exclude.sh @@ -1,11 +1,12 @@ SKIP_TESTS=( [test_buffer.py]=1 # FIXME: Works on c90ff51 [test_decorators.py]=1 # FIXME: Works on c90ff51 + [test_ftplib.py]=1 # FIXME: Works on c90ff51 + [test_optparse.py]=1 # FIXME: Works on c90ff51 [test_platform.py]=1 # FIXME: Works on c90ff51 [test_pyclbr.py]=1 # FIXME: Works on c90ff51 [test_tempfile.py]=1 # FIXME: Works on c90ff51 [test_uu.py]=1 # FIXME: Works on c90ff51 - [test_ftplib.py]=1 # FIXME: Works on c90ff51 [test___all__.py]=1 # it fails on its own [test_aifc.py]=1 # diff --git a/uncompyle6/semantics/transform.py b/uncompyle6/semantics/transform.py index f8bbd041..a74832a8 100644 --- a/uncompyle6/semantics/transform.py +++ b/uncompyle6/semantics/transform.py @@ -25,6 +25,8 @@ from uncompyle6.semantics.consts import RETURN_NONE def is_docstring(node): + if node == "sstmt": + node = node[0] try: return node.kind == "assign" and node[1][0].pattr == "__doc__" except: