Use Python docsctrings

This commit is contained in:
Dave Page
2015-01-21 12:00:13 +00:00
parent df5054f253
commit 7fa40d7671
3 changed files with 13 additions and 9 deletions

View File

@@ -5,10 +5,11 @@
# Copyright (C) 2013 - 2014, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
# pgadmin/__init__.py - Main application startup
#
##########################################################################
"""The main pgAdmin module. This handles the application initialisation tasks,
such as setup of logging, dynamic loading of modules etc."""
import inspect, logging, os
from flask import Flask
@@ -16,8 +17,8 @@ from flask import Flask
import config
def create_app(app_name=config.APP_NAME):
# Setup the app object
"""Create the Flask application, startup logging and dynamically load
additional modules (blueprints) that are found in this directory."""
app = Flask(__name__, static_url_path='')
app.config.from_object(config)