diff options
Diffstat (limited to 'tests/pkgs')
| -rw-r--r-- | tests/pkgs/eventonly/__init__.py | 6 | ||||
| -rw-r--r-- | tests/pkgs/exceptionviewapp/models.py | 6 | ||||
| -rw-r--r-- | tests/pkgs/restbugapp/views.py | 2 | ||||
| -rw-r--r-- | tests/pkgs/staticpermapp/__init__.py | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/tests/pkgs/eventonly/__init__.py b/tests/pkgs/eventonly/__init__.py index 35d83838f..d0d4dafb9 100644 --- a/tests/pkgs/eventonly/__init__.py +++ b/tests/pkgs/eventonly/__init__.py @@ -2,7 +2,7 @@ from pyramid.events import subscriber from pyramid.view import view_config -class Yup(object): +class Yup: def __init__(self, val, config): self.val = val @@ -15,12 +15,12 @@ class Yup(object): return getattr(event.response, 'yup', False) -class Foo(object): +class Foo: def __init__(self, response): self.response = response -class Bar(object): +class Bar: pass diff --git a/tests/pkgs/exceptionviewapp/models.py b/tests/pkgs/exceptionviewapp/models.py index 25f8e9156..e724b5c96 100644 --- a/tests/pkgs/exceptionviewapp/models.py +++ b/tests/pkgs/exceptionviewapp/models.py @@ -1,4 +1,4 @@ -class NotAnException(object): +class NotAnException: pass @@ -6,11 +6,11 @@ class AnException(Exception): pass -class RouteContext(object): +class RouteContext: pass -class RouteContext2(object): +class RouteContext2: pass diff --git a/tests/pkgs/restbugapp/views.py b/tests/pkgs/restbugapp/views.py index 161321aed..429ad0ea2 100644 --- a/tests/pkgs/restbugapp/views.py +++ b/tests/pkgs/restbugapp/views.py @@ -1,7 +1,7 @@ from pyramid.response import Response -class BaseRESTView(object): +class BaseRESTView: def __init__(self, context, request): self.context = context self.request = request diff --git a/tests/pkgs/staticpermapp/__init__.py b/tests/pkgs/staticpermapp/__init__.py index a12eac2d3..40ad7f527 100644 --- a/tests/pkgs/staticpermapp/__init__.py +++ b/tests/pkgs/staticpermapp/__init__.py @@ -1,11 +1,11 @@ -class RootFactory(object): +class RootFactory: __acl__ = [('Allow', 'fred', 'view')] def __init__(self, request): pass -class LocalRootFactory(object): +class LocalRootFactory: __acl__ = [('Allow', 'bob', 'view')] def __init__(self, request): |
