Skip to content

Commit 548abb8

Browse files
committed
fix doc tests
1 parent 53be240 commit 548abb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/c-api/object.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,15 +267,15 @@ Object Protocol
267267
>>> class D(B, A, C): pass
268268
...
269269
>>> D.__base__
270-
<class '__main__.C'>
270+
<class 'C'>
271271
>>>
272272
273273
A built-in type that is not an object or in the absence of the above class.
274274
275275
>>> class D(B, A, int): pass
276276
...
277277
>>> D.__base__
278-
<type 'int'>
278+
<class 'int'>
279279
280280
The first user defined class that inherits either an object or
281281
derives from a class (directly or indirectly) that inherits an
@@ -284,7 +284,7 @@ Object Protocol
284284
>>> class D(B, A): pass
285285
...
286286
>>> D.__base__
287-
<class '__main__.B'>
287+
<class 'B'>
288288
289289
Note that behavior of the ``__base__`` attribute is dependent on the CPython implementation.
290290

0 commit comments

Comments
 (0)