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):
98
98
}
99
99
100
100
101
- def register_backend (format , backend , description ):
101
+ def register_backend (format , backend , description = None ):
102
102
"""
103
103
Register a backend for saving to a given file format.
104
104
105
- * format*
105
+ format : str
106
106
File extention
107
107
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
110
110
111
- * description*
112
- Description of the file type
111
+ description : str, optional
112
+ Description of the file type. Defaults to an empty string
113
113
"""
114
+ if description is None :
115
+ description = ''
114
116
_default_backends [format ] = backend
115
117
_default_filetypes [format ] = description
116
118
You can’t perform that action at this time.
0 commit comments