extension_to_save_format method

extension_to_save_format(, extension)

Converts a file name extension into a SaveFormat value.

Returns


@staticmethod
def extension_to_save_format(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