Initia QtCore port to python3.

This commit is contained in:
Renato Filho 2011-10-03 18:49:42 -03:00 • committed by Hugo Parente Lima
commit 1e29ab6592
52 changed files with 380 additions and 286 deletions

View file

@ -1,13 +1,13 @@
'''Helper metaclass do 'decorate' docstrings from base test case classes'''
import new
import types
def copy_func(func):
'''Helper function to copy a function object (except docstring)'''
return new.function(func.func_code, func.func_globals, func.func_name,
func.func_defaults, func.func_closure)
return types.FunctionType(func.func_code, func.func_globals, func.func_name,
func.func_defaults, func.func_closure)
class DocModifier(type):