File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -198,10 +198,20 @@ class XLWriter(BookWriter):
198
198
"""
199
199
xls, xlsx and xlsm writer
200
200
"""
201
- def __init__ (self , file , ** keywords ):
202
- """Initialize a xlwt work book"""
201
+ def __init__ (self , file , encoding = 'ascii' ,
202
+ style_compression = 2 , ** keywords ):
203
+ """Initialize a xlwt work book
204
+
205
+
206
+ :param encoding: content encoding, defaults to 'ascii'
207
+ :param style_compression: undocumented, but 2 is magically
208
+ better
209
+ reference: `style_compression <https://groups.google.com/
210
+ forum/#!topic/python-excel/tUZkMRi8ITw>`_
211
+ """
203
212
BookWriter .__init__ (self , file , ** keywords )
204
- self .wb = Workbook (style_compression = 2 )
213
+ self .wb = Workbook (style_compression = style_compression ,
214
+ encoding = encoding )
205
215
206
216
def create_sheet (self , name ):
207
217
"""Create a xlwt writer"""
You can’t perform that action at this time.
0 commit comments