diff Lib/test/test_scope.py @ 40910:eaaee785eb86

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__.
author Neal Norwitz <nnorwitz@gmail.com>
date Sun, 25 Feb 2007 20:55:47 +0000
parents 4cdf21a0dbbc
children 30e5cb3a55ac
line wrap: on
line diff
--- a/Lib/test/test_scope.py	Sun Feb 25 20:39:11 2007 +0000
+++ b/Lib/test/test_scope.py	Sun Feb 25 20:55:47 2007 +0000
@@ -518,10 +518,10 @@
             return lambda: x + 1
 
         g = f(3)
-        self.assertRaises(TypeError, eval, g.func_code)
+        self.assertRaises(TypeError, eval, g.__code__)
 
         try:
-            exec(g.func_code, {})
+            exec(g.__code__, {})
         except TypeError:
             pass
         else: