src/reportlab/pdfgen/pycanvas.py
branchpy33
changeset 3723 99aa837b6703
parent 3721 0c93dd8ff567
equal deleted inserted replaced
3722:29c11b905751 3723:99aa837b6703
   147 def buildargs(*args, **kwargs) :
   147 def buildargs(*args, **kwargs) :
   148     """Constructs a printable list of arguments suitable for use in source function calls."""
   148     """Constructs a printable list of arguments suitable for use in source function calls."""
   149     arguments = ""
   149     arguments = ""
   150     for arg in args :
   150     for arg in args :
   151         arguments = arguments + ("%s, " % repr(arg))
   151         arguments = arguments + ("%s, " % repr(arg))
   152     for (kw, val) in list(kwargs.items()) :
   152     for kw, val in kwargs.items() :
   153         arguments = arguments+ ("%s=%s, " % (kw, repr(val)))
   153         arguments = arguments+ ("%s=%s, " % (kw, repr(val)))
   154     if arguments[-2:] == ", " :
   154     if arguments[-2:] == ", " :
   155         arguments = arguments[:-2]
   155         arguments = arguments[:-2]
   156     return arguments
   156     return arguments
   157 
   157