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


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


Use default argument for StreamHandler (which is what want, sys.stderr) because they changed the name of the keyword argument in 2.7
Use default argument for StreamHandler (which is what want, sys.stderr) because they changed the name of the keyword argument in 2.7

  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 = 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
  
  
Use default argument for StreamHandler (which is what want, sys.stderr) because they changed the name of the keyword argument in 2.7
## Code Before:
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


## Instruction:
Use default argument for StreamHandler (which is what want, sys.stderr) because they changed the name of the keyword argument in 2.7
## Code After:
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

