old_contents: import sys
  import logging
  
  def init_logging():
      logFormat = "%(asctime)s %(levelname)s %(filename)s:%(lineno)s %(message)s"
      logFormatter = logging.Formatter(fmt=logFormat)
      logHandler = logging.StreamHandler(stream=sys.stderr)
      logHandler.setFormatter(logFormatter)
      log = logging.getLogger(__name__)
      log.addHandler(logHandler)
  
  init_logging()
  
  from flask import Flask
  
  app = Flask(__name__)
  
  import pegasus.metrics.views
  
  
new_contents: import sys
  import logging
  
  def init_logging():
      logFormat = "%(asctime)s %(levelname)s %(filename)s:%(lineno)s %(message)s"
      logFormatter = logging.Formatter(fmt=logFormat)
      logHandler = logging.StreamHandler()
      logHandler.setFormatter(logFormatter)
      log = logging.getLogger(__name__)
      log.addHandler(logHandler)
  
  init_logging()
  
  from flask import Flask
  
  app = Flask(__name__)
  
  import pegasus.metrics.views
  
  
subject: Use default argument for StreamHandler (which is what want, sys.stderr) because they changed the name of the keyword argument in 2.7