Source

pypy / pypy / translator / cli / entrypoint.py

Diff from to

pypy/translator/cli/entrypoint.py

         ARG0 = graph.getargs()[0].concretetype
     except IndexError:
         ARG0 = None
-    if isinstance(ARG0, ootype.List) and ARG0._ITEMTYPE is ootype.String:
+    if isinstance(ARG0, ootype.List) and ARG0.ITEM is ootype.String:
         return StandaloneEntryPoint(graph)
     else:
         return TestEntryPoint(graph)
             ARG0 = self.graph.getargs()[0].concretetype
         except IndexError:
             ARG0 = None
-        assert isinstance(ARG0, ootype.List) and ARG0._ITEMTYPE is ootype.String,\
+        assert isinstance(ARG0, ootype.List) and ARG0.ITEM is ootype.String,\
                'Wrong entry point signature: List(String) expected'
 
         ilasm.begin_function('main', [('string[]', 'argv')], 'void', True, 'static')
 
         ilasm.call(self.cts.graph_to_signature(self.graph))
         ilasm.opcode('pop') # XXX: return this value, if it's an int32
+
+        ilasm.call('void [pypylib]pypy.runtime.DebugPrint::close_file()')
         ilasm.opcode('ret')
         ilasm.end_function()
         self.db.pending_function(self.graph)