summaryrefslogtreecommitdiff
path: root/tests/pkgs
diff options
context:
space:
mode:
authorSergey Maranchuk <slav0nic@python.su>2020-04-17 22:12:06 +0300
committerSergey Maranchuk <slav0nic@python.su>2020-04-17 22:12:06 +0300
commit6668e43d2d67db4574e08a9d54bd80eb105c1b28 (patch)
tree10eda61b15ae53815af24af956267e2f632a46f7 /tests/pkgs
parent48cf45b0a1ac04e701101fa18778164825edd429 (diff)
downloadpyramid-6668e43d2d67db4574e08a9d54bd80eb105c1b28.tar.gz
pyramid-6668e43d2d67db4574e08a9d54bd80eb105c1b28.tar.bz2
pyramid-6668e43d2d67db4574e08a9d54bd80eb105c1b28.zip
inheriting from `object` not necessary in py3
Diffstat (limited to 'tests/pkgs')
-rw-r--r--tests/pkgs/eventonly/__init__.py6
-rw-r--r--tests/pkgs/exceptionviewapp/models.py6
-rw-r--r--tests/pkgs/restbugapp/views.py2
-rw-r--r--tests/pkgs/staticpermapp/__init__.py4
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):