File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -98,19 +98,21 @@ def import_module(name):
9898}
9999
100100
101- def register_backend (format , backend , description ):
101+ def register_backend (format , backend , description = None ):
102102 """
103103 Register a backend for saving to a given file format.
104104
105- * format*
105+ format : str
106106 File extention
107107
108- * backend*
109- Backend for handling file output (module string or canvas class)
108+ backend : module string or canvas class
109+ Backend for handling file output
110110
111- * description*
112- Description of the file type
111+ description : str, optional
112+ Description of the file type. Defaults to an empty string
113113 """
114+ if description is None :
115+ description = ''
114116 _default_backends [format ] = backend
115117 _default_filetypes [format ] = description
116118
You can’t perform that action at this time.
0 commit comments