Skip to content

Commit

Permalink
- fix imports by designating packages as belonging to the default Zop…
Browse files Browse the repository at this point in the history
…e section
  • Loading branch information
dataflake committed Jul 16, 2020
1 parent 468645a commit bb23180
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ force_single_line = True
combine_as_imports = True
sections = FUTURE,STDLIB,THIRDPARTY,ZOPE,FIRSTPARTY,LOCALFOLDER
known_third_party = six
known_zope = Products, Products.PageTemplates
default_section = ZOPE
line_length = 79
lines_after_imports = 2
Expand All @@ -27,7 +28,7 @@ exclude =

[coverage:run]
branch = True
source = src
source = Products.SiteErrorLog
omit =

[coverage:report]
Expand Down
3 changes: 1 addition & 2 deletions src/Products/SiteErrorLog/SiteErrorLog.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@
from Acquisition import aq_base
from App.Dialogs import MessageDialog
from OFS.SimpleItem import SimpleItem
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
from transaction.interfaces import TransientError
from zExceptions.ExceptionFormatter import format_exception
from zope.component import adapter
from zope.event import notify
from ZPublisher.interfaces import IPubFailure

from Products.PageTemplates.PageTemplateFile import PageTemplateFile

from .interfaces import ErrorRaisedEvent


Expand Down
3 changes: 1 addition & 2 deletions src/Products/SiteErrorLog/tests/testInitialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
import tempfile
import unittest

import Products
from App.config import getConfiguration
from App.config import setConfiguration
from OFS.Application import AppInitializer
from OFS.Application import Application
from Zope2.Startup.options import ZopeWSGIOptions

import Products


test_cfg = """
instancehome {instance_home}
Expand Down

0 comments on commit bb23180

Please sign in to comment.