Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
flake8 comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodbare committed Nov 21, 2016
1 parent ee90701 commit 2282f47
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/plone.server/plone/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@
SCHEMA_CACHE = {}
PERMISSIONS_CACHE = {}
FACTORY_CACHE = {}


1 change: 1 addition & 0 deletions src/plone.server/plone/server/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ async def notify(event):
for subscriber in asyncsubscribers:
await subscriber(event)


async def dispatch(*event):
try:
sitemanager = getSiteManager()
Expand Down
1 change: 0 additions & 1 deletion src/plone.server/plone/server/metaconfigure.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,3 @@ def addOn(_context, name, title, handler):
'title': title,
'handler': handler
}

8 changes: 3 additions & 5 deletions src/plone.server/plone/server/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,13 @@ def subscribers(self, objects, provided):
result.append(subscriber)
return result


AdapterLookupBase.asubscribers = asubscribers
AdapterLookupBase.subscribers = subscribers




async def acommit(self):
""" See ITransaction.
"""
"""See ITransaction."""
if self.status is Status.DOOMED:
raise interfaces.DoomedTransaction(
'transaction doomed, cannot commit')
Expand All @@ -66,7 +64,7 @@ async def acommit(self):
self._invalidate_all_savepoints()

if self.status is Status.COMMITFAILED:
self._prior_operation_failed() # doesn't return
self._prior_operation_failed() # doesn't return

await self._acallBeforeCommitHooks()

Expand Down

0 comments on commit 2282f47

Please sign in to comment.