class_docstr: Handles upgrading a set of Python files using a given API change spec.
class_docstr_tok: ["Handles","upgrading","a","set","of","Python","files","using","a","given","API","change","spec","."]
code: def _format_log(self, log, in_filename, out_filename):
      text = "-" * 80 + "\n"
      text += "Processing file %r\n outputting to %r\n" % (
          in_filename,
          out_filename,
      )
      text += "-" * 80 + "\n\n"
      text += "\n".join(log) + "\n"
      text += "-" * 80 + "\n\n"
      return text
  
imports: import ast
  import collections
  import os
  import re
  import shutil
  import sys
  import tempfile
  import traceback
  import pasta
label_desc: Use image node_id 5 for calling the ASTCodeUpgrader obj's underlying member method code with example usage: obj._format_log(log, in_filename, out_filename) and returns: text