Permalink
Browse files

remove coding:utf-8 and add some style fixes

  • Loading branch information...
1 parent 5710314 commit 903ed85f008505f48e935e1b5280439773d09d33 @defuz defuz committed Nov 28, 2013
View
1 example/example.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
import sys
sys.path.insert(0, '.')
View
1 flask_debugtoolbar/__init__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
import os
from flask import current_app, request, g
View
1 flask_debugtoolbar/compat.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
import sys
PY2 = sys.version_info[0] == 2
View
7 flask_debugtoolbar/panels/__init__.py
@@ -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 @@ def process_view(self, request, view_func, view_kwargs):
def process_response(self, request, response):
pass
-
-
View
2 flask_debugtoolbar/panels/config_vars.py
@@ -1,6 +1,6 @@
-# -*- coding: utf-8 -*-
from flask import current_app
from flask_debugtoolbar.panels import DebugPanel
+
_ = lambda x: x
View
1 flask_debugtoolbar/panels/headers.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
from flask_debugtoolbar.panels import DebugPanel
_ = lambda x: x
View
1 flask_debugtoolbar/panels/logger.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
from __future__ import with_statement
import datetime
View
1 flask_debugtoolbar/panels/profiler.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
import sys
try:
import cProfile as profile
View
1 flask_debugtoolbar/panels/request_vars.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
from flask import session
from flask_debugtoolbar.panels import DebugPanel
View
1 flask_debugtoolbar/panels/sqlalchemy.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
try:
from flask.ext.sqlalchemy import get_debug_queries, SQLAlchemy
except ImportError:
View
1 flask_debugtoolbar/panels/template.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
import collections
import json
import sys
View
1 flask_debugtoolbar/panels/timer.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
try:
import resource
except ImportError:
View
1 flask_debugtoolbar/panels/versions.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
from flask import __version__ as flask_version
from flask_debugtoolbar.panels import DebugPanel
View
1 flask_debugtoolbar/toolbar.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
try:
from urllib.parse import unquote
except ImportError:
View
4 flask_debugtoolbar/utils.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
import os.path
import sys
@@ -15,6 +14,7 @@
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
1 test/basic_app.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
from flask import Flask, render_template
from flask_debugtoolbar import DebugToolbarExtension
View
1 test/test_toolbar.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
def load_app(name):
app = __import__(name).app
app.config['TESTING'] = True

0 comments on commit 903ed85

Please sign in to comment.