(self, dos_name, defext)
return dos_name
Strip trailing whitepace and apply default extension to DOS name.
Strip trailing whitepace and apply default extension to DOS name.
Strip trailing whitepace and apply default extension to DOS name .
def _get_dos_name_defext(self, dos_name, defext):
        """Strip trailing whitepace and apply default extension to DOS name."""
        # ignore trailing whitespace
        dos_name = dos_name.rstrip()
        if defext and b'.' not in dos_name:
            dos_name += b'.' + defext
        return dos_name
def _get_dos_name_defext ( self , dos_name , defext ) : # ignore trailing whitespace dos_name = dos_name . rstrip ( ) if defext and b'.' not in dos_name : dos_name += b'.' + defext return dos_name