(self, string)
return ", ".join(parts)
Fixup the input. Remove empty parts from the string.
Fixup the input. Remove empty parts from the string.
Fixup the input . Remove empty parts from the string .
def fixup(self, string):
        # type: (str) -> str
        """
        Fixup the input. Remove empty parts from the string.
        """
        parts = [string[start: end] for start, end in self.itersplit(string)]
        parts = [part for part in parts if part.strip()]
        return ", ".join(parts)
def fixup ( self , string ) : # type: (str) -> str parts = [ string [ start : end ] for start , end in self . itersplit ( string ) ] parts = [ part for part in parts if part . strip ( ) ] return ", " . join ( parts )