def runsource(self, source, filename='<input>', symbol='single'):
        if self._is_native:
            return InteractiveShell.runsource(self, source, filename, symbol)
        source=source.encode(self.stdin_encoding)
        if [' ', '\t'] in source[:1]:
            source = 'if 1:\n%s' % source
        try:
            code = self.compile(source, filename, symbol)
        except (OverflowError, SyntaxError, ValueError, TypeError, MemoryError):
            # Case 1
            self.showsyntaxerror(filename)
            return None
        if code is None:
            # Case 2
            return True

        # Case 3
        #print "\n Code to translate:\n" + source + "\n"
        if source.startswith('_ip.'):
            # This is IPython Magick stuff. Run in native interpreter:
            return InteractiveShell.runsource(self, source, filename, symbol)
        # Translate
        try:
            jscode, imppy, impjs = self._js_int.translate(source)
            self.code_to_run = jscode
        except Exception, e:
            print_exc()
            return None

        if self._show_js:
            print "\n Translated JS:\n" + jscode + "\n"
        # now actually execute the code object
        if self._js_int.eval(jscode) == 0:
            return False
        else:
            return None
dataset/ETHPy150Open pyjs/pyjs/pyjs/pyv8/repl.py/V8InteractiveShell.runsource/swapped operands of `in`