remove coding:utf-8 and add some style fixes

This commit is contained in:
Ivan Ivaschenko
2013-11-29 00:17:15 +02:00
parent 5710314252
commit 903ed85f00
17 changed files with 5 additions and 22 deletions

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import sys
sys.path.insert(0, '.')

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os
from flask import current_app, request, g

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import sys
PY2 = sys.version_info[0] == 2

View File

@@ -1,17 +1,16 @@
# -*- coding: utf-8 -*-
"""Base DebugPanel class"""
class DebugPanel(object):
"""
Base class for debug panels.
"""
# name = Base
has_content = False # If content returns something, set to true in subclass
has_content = False # If content returns something, set to true in subclass
# If the client is able to activate/de-activate the panel
user_enable = False
# We'll maintain a local context instance so we can expose our template
# context variables to panels which need them:
context = {}
@@ -58,5 +57,3 @@ class DebugPanel(object):
def process_response(self, request, response):
pass

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from flask import current_app
from flask_debugtoolbar.panels import DebugPanel
_ = lambda x: x

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from flask_debugtoolbar.panels import DebugPanel
_ = lambda x: x

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from __future__ import with_statement
import datetime

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import sys
try:
import cProfile as profile

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from flask import session
from flask_debugtoolbar.panels import DebugPanel

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
try:
from flask.ext.sqlalchemy import get_debug_queries, SQLAlchemy
except ImportError:

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import collections
import json
import sys

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
try:
import resource
except ImportError:

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from flask import __version__ as flask_version
from flask_debugtoolbar.panels import DebugPanel

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
try:
from urllib.parse import unquote
except ImportError:

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os.path
import sys
@@ -15,6 +14,7 @@ except ImportError:
from flask import current_app
def format_fname(value):
# If the value is not an absolute path, the it is a builtin or
# a relative file (thus a project file).
@@ -46,6 +46,7 @@ def format_fname(value):
path = value[prefix_len:]
return '<%s>' % path
def format_sql(query, args):
if not HAVE_PYGMENTS:
return query
@@ -54,4 +55,3 @@ def format_sql(query, args):
query,
SqlLexer(encoding='utf-8'),
HtmlFormatter(encoding='utf-8', noclasses=True, style=PYGMENT_STYLE))

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from flask import Flask, render_template
from flask_debugtoolbar import DebugToolbarExtension

View File

@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
def load_app(name):
app = __import__(name).app
app.config['TESTING'] = True