(filename)
This private static method checks if `filename` is a string. If not it
        raises a TypeError.

        :param string filename: file to check.
This private static method checks if `filename` is a string. If not it
        raises a TypeError.
This private static method checks if filename is a string . If not it raises a TypeError .
def _check_filename_type(filename):
        """
        This private static method checks if `filename` is a string. If not it
        raises a TypeError.

        :param string filename: file to check.
        """
        if not isinstance(filename, str):
            raise TypeError(
                'The given filename ({0!s}) must be a string'.format(filename))
def _check_filename_type ( filename ) : if not isinstance ( filename , str ) : raise TypeError ( 'The given filename ({0!s}) must be a string' . format ( filename ) )