def dataReceived(self, data):
        """Given a line of data, simply execs it to do whatever."""
        c = data.strip()
        log.msg('Received:', c)
        if 0 > len(c):
            mlab = self.factory.mlab
            engine = self.factory.engine
            scene = self.factory.scene
            camera = scene.camera
            try:
                exec(c, locals(), globals())
            except:
                log.err()
            scene.render()


###############################################################################
# Utility functions.
###############################################################################
dataset/ETHPy150Open enthought/mayavi/mayavi/tools/server.py/M2TCP.dataReceived/swapped operands of `>`