mirror of https://github.com/python/cpython.git
Made the classmethod docstring test a bit less trivial.
This commit is contained in:
parent
17111f3b24
commit
1b0e5490c5
|
@ -87,10 +87,10 @@ def clsm(cls, val):
|
|||
|
||||
>>> print C.clsm(22) # 18
|
||||
22
|
||||
>>> print C().clsm(22) # 19
|
||||
22
|
||||
>>> print C().clsm(23) # 19
|
||||
23
|
||||
"""
|
||||
return 22
|
||||
return val
|
||||
|
||||
clsm = classmethod(clsm)
|
||||
|
||||
|
|
Loading…
Reference in New Issue