def _dump(self):
    """Converts to a printable string for debugging purposes.

    In order to preserve the request, it does not read from file-like objects
    in the body.
    """
    output =  'HTTP Request\n  method: %s\n  url: %s\n  headers:\n' % (
        self.method, str(self.uri))
    for header, value in self.headers.iteritems():
      output += '    %s: %s\n' % (header, value)
    output += '  body sections:\n'
    i = 0
    for part in self._body_parts:
      if isinstance(part, (str, unicode)):
        output += (i, part) % '    %s: %s\n'
      else:
        output += '    %s: <file like object>\n' % i
      i += 1
    return output
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/atom/http_core.py/HttpRequest._dump/swapped operands of `%`