9393# * draw_quad_mesh
9494
9595
96+ @_api .deprecated ("3.6" , alternative = "Vendor the code" )
9697def fill (strings , linelen = 75 ):
98+ return _fill (strings , linelen = linelen )
99+
100+
101+ def _fill (strings , linelen = 75 ):
97102 """
98103 Make one string from sequence of strings, with whitespace in between.
99104
@@ -292,15 +297,15 @@ def pdfRepr(obj):
292297 # anything, so the caller must ensure that PDF names are
293298 # represented as Name objects.
294299 elif isinstance (obj , dict ):
295- return fill ([
300+ return _fill ([
296301 b"<<" ,
297302 * [Name (k ).pdfRepr () + b" " + pdfRepr (v ) for k , v in obj .items ()],
298303 b">>" ,
299304 ])
300305
301306 # Lists.
302307 elif isinstance (obj , (list , tuple )):
303- return fill ([b"[" , * [pdfRepr (val ) for val in obj ], b"]" ])
308+ return _fill ([b"[" , * [pdfRepr (val ) for val in obj ], b"]" ])
304309
305310 # The null keyword.
306311 elif obj is None :
@@ -312,7 +317,7 @@ def pdfRepr(obj):
312317
313318 # A bounding box
314319 elif isinstance (obj , BboxBase ):
315- return fill ([pdfRepr (val ) for val in obj .bounds ])
320+ return _fill ([pdfRepr (val ) for val in obj .bounds ])
316321
317322 else :
318323 raise TypeError ("Don't know a PDF representation for {} objects"
@@ -833,7 +838,7 @@ def write(self, data):
833838 self .currentstream .write (data )
834839
835840 def output (self , * data ):
836- self .write (fill ([pdfRepr (x ) for x in data ]))
841+ self .write (_fill ([pdfRepr (x ) for x in data ]))
837842 self .write (b'\n ' )
838843
839844 def beginStream (self , id , len , extra = None , png = None ):
0 commit comments