Skip to content
This repository has been archived by the owner on Feb 12, 2020. It is now read-only.

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
janjaapdriessen committed May 14, 2012
1 parent bdf0cc0 commit e14dfd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/grokcore/resource/event.py
Expand Up @@ -13,7 +13,8 @@
zope.app.publication.interfaces.IBeforeTraverseEvent)
def handle_resources(includer, event):
includer = zope.security.proxy.removeSecurityProxy(includer)
for resources in grokcore.resource.directives.resources.bind().get(includer):
for resources in grokcore.resource.directives.resources.bind().get(
includer):
for resource in resources:
resource.need()

Expand All @@ -34,6 +35,7 @@ def handle_resources(includer, event):
zope.contentprovider.interfaces.IBeforeUpdateEvent)
def handle_inclusion(includer, event):
includer = zope.security.proxy.removeSecurityProxy(includer)
for resources in grokcore.resource.directives.resources.bind().get(includer):
for resources in grokcore.resource.directives.resources.bind().get(
includer):
for resource in resources:
resource.need()
2 changes: 0 additions & 2 deletions src/grokcore/resource/tests/test_functional.py
Expand Up @@ -106,8 +106,6 @@ def test_validation(self):
'''The `resources` directive will raise an error if the provided
value is not a valid inclusion object.'''
import grokcore.resource
sneaky = object()

try:
class Sneaky(object):
grokcore.resource.resources(object())
Expand Down

0 comments on commit e14dfd3

Please sign in to comment.