mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Change all the function attributes from func_* -> __*__. This gets rid
of func_name, func_dict and func_doc as they already exist as __name__, __dict__ and __doc__.
This commit is contained in:
parent
27d517b21b
commit
221085de89
37 changed files with 160 additions and 184 deletions
|
|
@ -230,7 +230,7 @@ class SysModuleTest(unittest.TestCase):
|
|||
self.assertRaises(TypeError, sys._getframe, 42, 42)
|
||||
self.assertRaises(ValueError, sys._getframe, 2000000000)
|
||||
self.assert_(
|
||||
SysModuleTest.test_getframe.im_func.func_code \
|
||||
SysModuleTest.test_getframe.im_func.__code__ \
|
||||
is sys._getframe().f_code
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue