diff --git a/test/simple_source/bug35/04_call_function.py b/test/simple_source/bug35/04_call_function.py index 9f5b60d5..a4cf5101 100644 --- a/test/simple_source/bug35/04_call_function.py +++ b/test/simple_source/bug35/04_call_function.py @@ -63,3 +63,8 @@ def unpack_archive(func, filename, dict, format_info, extract_dir=None): import xdrlib def assertRaisesConversion(self, *args): self.assertRaises(xdrlib.ConversionError, *args) + +# From 3.2.6 _pyio.py +class BlockingIOError(IOError): + def __init__(self, errno, strerror, characters_written=5): + super().__init__(errno, strerror) diff --git a/uncompyle6/semantics/make_function.py b/uncompyle6/semantics/make_function.py index 7d85d65a..8a5391b2 100644 --- a/uncompyle6/semantics/make_function.py +++ b/uncompyle6/semantics/make_function.py @@ -520,7 +520,7 @@ def make_function3(self, node, is_lambda, nested=1, codeNode=None): lc_index = -3 pass - if (self.version <= 3.3 and len(node) > 2 and + if (self.version == 3.3 and len(node) > 2 and node[lambda_index] != 'LOAD_LAMBDA' and (have_kwargs or node[lc_index].kind != 'load_closure')): # args are after kwargs; kwargs are bundled as one node