def readlines(self, hint=None):
        if hint is not None and not isinstance(hint, (int, long)):
            raise TypeError("integer or None expected")
        if hint is None or hint <= 0:
            return list(self)
        n = 0
        lines = []
        for line in self:
            lines.append(line)
            n += len(line)
            if n >= hint:
                break
        return lines
Test setting a direction for a motor that should have no direction.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/_pyio.py/IOBase.readlines--crossover with--dataset/ETHPy150Open IEEERobotics/bot/tests/test_motor.py/TestNoDirection.test_set_dir