Skip to content

Commit

Permalink
Ease the code.
Browse files Browse the repository at this point in the history
As suggested by @mgedmin
  • Loading branch information
Michael Howitz committed Oct 10, 2018
1 parent dd2f119 commit 3f778c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/zope/viewlet/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ class FakeModule(object):
"""A fake module."""

def __init__(self, dict):
self.__dict = dict

def __getattr__(self, name):
return self.__dict[name]
self.__dict__ = dict


def directivesSetUp(test):
Expand Down

0 comments on commit 3f778c2

Please sign in to comment.