From 221085de89afa861c49ff4306979dbbad949d393 Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 25 Feb 2007 20:55:47 +0000 Subject: 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__. --- Lib/test/test_compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_compiler.py') diff --git a/Lib/test/test_compiler.py b/Lib/test/test_compiler.py index bbd7511900..8535f42768 100644 --- a/Lib/test/test_compiler.py +++ b/Lib/test/test_compiler.py @@ -160,7 +160,7 @@ class CompilerTest(unittest.TestCase): c = compiler.compile(sourcecode, '', 'exec') dct = {} exec(c, dct) - self.assertEquals(dct['f'].func_annotations, expected) + self.assertEquals(dct['f'].__annotations__, expected) def testWith(self): # SF bug 1638243 -- cgit v1.2.1