extension_to_save_format method

extension_to_save_format

Converts a file name extension into a SaveFormat value.

Returns

def extension_to_save_format(self, extension):
    ...
ParameterTypeDescription
extensionstrThe file extension. Can be with or without a leading dot. Case-insensitive.

Remarks

If the extension cannot be recognized, returns SaveFormat.UNKNOWN.

See Also