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

Use functools.wraps

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