def print_help(self, file=None):
        """print_help(file : file = stdout)

        Print an extended help message, listing all options and any
        help text provided with them, to 'file' (default stdout).
        """
        if file is None:
            file = sys.stdout
        encoding = self._get_encoding(file)
        # file.write(self.format_help().encode(encoding, "replace"))
        file.write(self.format_help())
def print_help(self, file=None):
        """print_help(file : file = stdout)

        Print an extended help message, listing all options and any
        help text provided with them, to 'file' (default stdout).
        """
        if file is None:
            file = sys.stdout
        encoding = self._get_encoding(file)
        # file.write(self.format_help().encode(encoding, "replace"))
        file.write(self.format_help())
def print_help ( self , file = None ) : if file is None : file = sys . stdout encoding = self . _get_encoding ( file ) # file.write(self.format_help().encode(encoding, "replace")) file . write ( self . format_help ( ) )
print_help(file : file = stdout)

        Print an extended help message, listing all options and any
        help text provided with them, to 'file' (default stdout).
print_help ( file : file = stdout )