Browse Source

[FIX] defuse flake8

pull/480/head
Holger Brunn 8 years ago
parent
commit
903c0dbb6a
No known key found for this signature in database GPG Key ID: 1C9760FECA3AE18
  1. 2
      field_rrule/hooks.py

2
field_rrule/hooks.py

@ -8,7 +8,7 @@ import inspect
def post_load_hook():
"""do some trickery to have demo data/model on runbot, but nowhere else"""
if socket.getfqdn().endswith('odoo-community.org'): # pragma: nocover
from . import demo
from . import demo # flake8: noqa
for frame, filename, lineno, funcname, line, index in inspect.stack():
if 'package' in frame.f_locals:
frame.f_locals['package'].info['demo'] =\

Loading…
Cancel
Save