def _paint_path(fill, stroke):
 if stroke:
  if fill:
   return Op.fill_stroke
  else:
   return Op.stroke
 elif fill:
  return Op.fill
 else:
  return Op.endpath

def _paint_path ( fill , stroke ) : if stroke : if fill : return Op . fill_stroke else : return Op . stroke elif fill : return Op . fill else : return Op . endpath
return the pdf operator to paint a path in the following way: fill: fill the path with the fill color stroke: stroke the outline of the path with the line color .