Skip to content

Commit

Permalink
Merge pull request #63 from aio-libs/fix-flake8
Browse files Browse the repository at this point in the history
Fix flake8
  • Loading branch information
jettify authored Nov 14, 2016
2 parents 7a98965 + 5cda0c2 commit 055f1cf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions aiohttp_debugtoolbar/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
ToolbarStorage, ExceptionHistory
from .views import ExceptionDebugView


default_panel_names = [
panels.HeaderDebugPanel,
panels.PerformanceDebugPanel,
Expand All @@ -18,13 +19,15 @@
panels.LoggingPanel,
]


default_global_panel_names = [
panels.RoutesDebugPanel,
panels.SettingsDebugPanel,
panels.MiddlewaresDebugPanel,
panels.VersionDebugPanel,
]


default_settings = {
'enabled': True,
'intercept_exc': 'debug', # display or debug or False
Expand Down
1 change: 1 addition & 0 deletions aiohttp_debugtoolbar/tbtools/repr.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def __call__(self, topic=None):
text = paragraphs[0]
sys.stdout._write(HELP_HTML % {'title': title, 'text': text})


helper = _Helper()


Expand Down
2 changes: 2 additions & 0 deletions aiohttp_debugtoolbar/toolbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def inject(self, request, response):
response.body = replace_insensitive(
response_html, b'</body>',
toolbar_html + b'</body>')


toolbar_css_template = """\
<link rel="stylesheet" type="text/css" href="%(css_path)s">"""

Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ipdb==0.10.1
pytest==3.0.3
pytest-cov==2.4.0
coverage==4.2
flake8==3.0.4
flake8==3.2.0
-e .
aiohttp-jinja2==0.8.0
aiohttp-mako==0.1.0
Expand Down
1 change: 0 additions & 1 deletion tests/pep492/test_await.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import aiohttp
from aiohttp import web


Expand Down

0 comments on commit 055f1cf

Please sign in to comment.