@@ -59,20 +59,20 @@ def set_ownership_policy(match_class, match_method, python_owns_result):
5959# NB: Ideally, we'd use the version commented out below, but for now, we
6060# make do with the hackier version here.
6161def rename_attribute (match_class , orig_attribute , new_attribute , keep_orig = False ):
62- class attribute_pythonizor ( object ) :
63- class getter ( object ) :
62+ class attribute_pythonizor :
63+ class getter :
6464 def __init__ (self , attr ):
6565 self .attr = attr
6666 def __call__ (self , obj ):
6767 return getattr (obj , self .attr )
6868
69- class setter ( object ) :
69+ class setter :
7070 def __init__ (self , attr ):
7171 self .attr = attr
7272 def __call__ (self , obj , value ):
7373 return setattr (obj , self .attr , value )
7474
75- class deleter ( object ) :
75+ class deleter :
7676 def __init__ (self , attr ):
7777 self .attr = attr
7878 def __call__ (self , obj ):
@@ -123,7 +123,7 @@ def __call__(self, obj, name):
123123# Shared with PyPy:
124124
125125def add_overload (match_class , match_method , overload ):
126- class method_pythonizor ( object ) :
126+ class method_pythonizor :
127127 def __init__ (self , match_class , match_method , overload ):
128128 import re
129129 self .match_class = re .compile (match_class )
@@ -146,7 +146,7 @@ def __call__(self, obj, name):
146146
147147
148148def compose_method (match_class , match_method , g ):
149- class composition_pythonizor ( object ) :
149+ class composition_pythonizor :
150150 def __init__ (self , match_class , match_method , g ):
151151 import re
152152 self .match_class = re .compile (match_class )
@@ -174,7 +174,7 @@ def h(self, *args, **kwargs):
174174
175175
176176def set_method_property (match_class , match_method , prop , value ):
177- class method_pythonizor ( object ) :
177+ class method_pythonizor :
178178 def __init__ (self , match_class , match_method , prop , value ):
179179 import re
180180 self .match_class = re .compile (match_class )
@@ -196,7 +196,7 @@ def __call__(self, obj, name):
196196
197197
198198def make_property (match_class , match_get , match_set = None , match_del = None , prop_name = None ):
199- class property_pythonizor ( object ) :
199+ class property_pythonizor :
200200 def __init__ (self , match_class , match_get , match_set , match_del , prop_name ):
201201 import re
202202 self .match_class = re .compile (match_class )
@@ -230,7 +230,7 @@ def __init__(self, match_class, match_get, match_set, match_del, prop_name):
230230 self .prop_name = prop_name
231231
232232 def make_get_del_proxy (self , getter ):
233- class proxy ( object ) :
233+ class proxy :
234234 def __init__ (self , getter ):
235235 self .getter = getter
236236
@@ -239,7 +239,7 @@ def __call__(self, obj):
239239 return proxy (getter )
240240
241241 def make_set_proxy (self , setter ):
242- class proxy ( object ) :
242+ class proxy :
243243 def __init__ (self , setter ):
244244 self .setter = setter
245245
0 commit comments