def _split_tidy(self, string, maxsplit=None):
        """Rstrips string for \n and splits string for \t"""

        if maxsplit is None:
            return string.rstrip("\n").split("\t")
        else:
            return string.rstrip("\n").split("\t", maxsplit)
def _split_tidy ( self , string , maxsplit = None ) : if maxsplit is None : return string . rstrip ( "\n" ) . split ( "\t" ) else : return string . rstrip ( "\n" ) . split ( "\t" , maxsplit )
Rstrips string for \n and splits string for \t