File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
import datetime
4
4
import gzip
5
5
import hashlib
6
- from io import BytesIO , StringIO
6
+ from io import BytesIO
7
7
import itertools
8
8
import logging
9
9
import os
@@ -248,17 +248,17 @@ def flush(self):
248
248
249
249
250
250
def _generate_transform (transform_list ):
251
- output = StringIO ()
251
+ parts = []
252
252
for type , value in transform_list :
253
253
if (type == 'scale' and (value == (1 ,) or value == (1 , 1 ))
254
254
or type == 'translate' and value == (0 , 0 )
255
255
or type == 'rotate' and value == (0 ,)):
256
256
continue
257
257
if type == 'matrix' and isinstance (value , Affine2DBase ):
258
258
value = value .to_values ()
259
- output . write ('%s(%s)' % (
259
+ parts . append ('%s(%s)' % (
260
260
type , ' ' .join (short_float_fmt (x ) for x in value )))
261
- return output . getvalue ( )
261
+ return ' ' . join ( parts )
262
262
263
263
264
264
@_api .deprecated ("3.6" )
You can’t perform that action at this time.
0 commit comments