fix some more print statements

This commit is contained in:
Benjamin Peterson 2008-10-29 20:35:35 +00:00
parent 9a7b901b99
commit 64106fbdaf

View File

@ -1918,14 +1918,14 @@ correctness, implicit special method lookup may also bypass the
>>> class Meta(type): >>> class Meta(type):
... def __getattribute__(*args): ... def __getattribute__(*args):
... print "Metaclass getattribute invoked" ... print("Metaclass getattribute invoked")
... return type.__getattribute__(*args) ... return type.__getattribute__(*args)
... ...
>>> class C(object, metaclass=Meta): >>> class C(object, metaclass=Meta):
... def __len__(self): ... def __len__(self):
... return 10 ... return 10
... def __getattribute__(*args): ... def __getattribute__(*args):
... print "Class getattribute invoked" ... print("Class getattribute invoked")
... return object.__getattribute__(*args) ... return object.__getattribute__(*args)
... ...
>>> c = C() >>> c = C()