Commit 8b45f007 authored by Pierre Augier's avatar Pierre Augier
Browse files

Use functools.wraps

parent 1a2b1787083e
......@@ -27,6 +27,7 @@ import inspect
import time
import subprocess
import os
import functools
from .util import (
get_module_name,
......@@ -348,7 +349,7 @@ class FluidPythran:
func_tmp = func
if self.is_compiling:
return CheckCompiling(self, func_tmp)
return functools.wraps(func)(CheckCompiling(self, func_tmp))
return func_tmp
......
......@@ -59,6 +59,7 @@ import os
import sys
import time
from distutils.util import strtobool
from functools import wraps
try:
import numpy as np
......@@ -394,6 +395,7 @@ class CachedJIT:
module_pythran = import_from_path(path_ext, name_mod)
self.pythran_func = getattr(module_pythran, func_name)
@wraps(func)
def type_collector(*args, **kwargs):
if self.compiling:
......
Markdown is supported
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