Commit 153c3652 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Use __code__ instead of the deprecated func_code.

parent 1329184d
......@@ -100,7 +100,7 @@ def _func():
FunctionType = type(_func)
GeneratorType = type(_func())
MethodType = type(_C.method)
CodeType = type(_C.method.func_code)
CodeType = type(_C.method.__code__)
try:
raise TypeError()
except TypeError:
......@@ -151,7 +151,7 @@ def environmentfunction(f):
def internalcode(f):
"""Marks the function as internally used"""
internal_code.add(f.func_code)
internal_code.add(f.__code__)
return f
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment