import logging

from flask import Flask


log = logging.getLogger(__name__)


def create_app(config_dict):
    app = Flask(__name__, static_folder=None)
    app.config.update(**config_dict)

    from uiharu.api.views import api as api_blueprint
    from uiharu.weather.views import weather as weather_blueprint

    app.register_blueprint(api_blueprint, url_prefix='/api/v1')
    app.register_blueprint(weather_blueprint)

    log.info(app.url_map)

    return app

import logging


log = logging.getLogger(__name__)


Remove flask usage in init
Remove flask usage in init

  import logging
- 
- from flask import Flask
  
  
  log = logging.getLogger(__name__)
  
  
- def create_app(config_dict):
-     app = Flask(__name__, static_folder=None)
-     app.config.update(**config_dict)
- 
-     from uiharu.api.views import api as api_blueprint
-     from uiharu.weather.views import weather as weather_blueprint
- 
-     app.register_blueprint(api_blueprint, url_prefix='/api/v1')
-     app.register_blueprint(weather_blueprint)
- 
-     log.info(app.url_map)
- 
-     return app
- 
Remove flask usage in init
## Code Before:
import logging

from flask import Flask


log = logging.getLogger(__name__)


def create_app(config_dict):
    app = Flask(__name__, static_folder=None)
    app.config.update(**config_dict)

    from uiharu.api.views import api as api_blueprint
    from uiharu.weather.views import weather as weather_blueprint

    app.register_blueprint(api_blueprint, url_prefix='/api/v1')
    app.register_blueprint(weather_blueprint)

    log.info(app.url_map)

    return app

## Instruction:
Remove flask usage in init
## Code After:
import logging


log = logging.getLogger(__name__)

