def fix_w291(self, result):
        """Remove trailing whitespace."""
        fixed_line = self.source[result['line'] - 1].rstrip()
        self.source[result['line'] - 1] = fixed_line + '\n'
dataset/ETHPy150Open jdf/processing.py/mode/formatter/autopep8.py/FixPEP8.fix_w291/original