Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove coding:utf-8 and add some style fixes

  • Loading branch information...
commit 903ed85f008505f48e935e1b5280439773d09d33 1 parent 5710314
Ivan Ivaschenko defuz authored
1  example/example.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
import sys
sys.path.insert(0, '.')
1  flask_debugtoolbar/__init__.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
import os
from flask import current_app, request, g
1  flask_debugtoolbar/compat.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
import sys
PY2 = sys.version_info[0] == 2
7 flask_debugtoolbar/panels/__init__.py
View
@@ -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
-
-
2  flask_debugtoolbar/panels/config_vars.py
View
@@ -1,6 +1,6 @@
-# -*- coding: utf-8 -*-
from flask import current_app
from flask_debugtoolbar.panels import DebugPanel
+
_ = lambda x: x
1  flask_debugtoolbar/panels/headers.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
from flask_debugtoolbar.panels import DebugPanel
_ = lambda x: x
1  flask_debugtoolbar/panels/logger.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
from __future__ import with_statement
import datetime
1  flask_debugtoolbar/panels/profiler.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
import sys
try:
import cProfile as profile
1  flask_debugtoolbar/panels/request_vars.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
from flask import session
from flask_debugtoolbar.panels import DebugPanel
1  flask_debugtoolbar/panels/sqlalchemy.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
try:
from flask.ext.sqlalchemy import get_debug_queries, SQLAlchemy
except ImportError:
1  flask_debugtoolbar/panels/template.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
import collections
import json
import sys
1  flask_debugtoolbar/panels/timer.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
try:
import resource
except ImportError:
1  flask_debugtoolbar/panels/versions.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
from flask import __version__ as flask_version
from flask_debugtoolbar.panels import DebugPanel
1  flask_debugtoolbar/toolbar.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
try:
from urllib.parse import unquote
except ImportError:
4 flask_debugtoolbar/utils.py
View
@@ -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))
-
1  test/basic_app.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
from flask import Flask, render_template
from flask_debugtoolbar import DebugToolbarExtension
1  test/test_toolbar.py
View
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
def load_app(name):
app = __import__(name).app
app.config['TESTING'] = True
Please sign in to comment.
Something went wrong with that request. Please try again.