Remove expensive functools.wraps from memoize decorator

This commit is contained in:
Kim Silkebækken 2013-01-22 13:17:58 +01:00
parent 10ed88c576
commit 292d5313e2
1 changed files with 0 additions and 2 deletions

View File

@ -4,7 +4,6 @@ try:
import cPickle as pickle
except ImportError:
import pickle
import functools
import os
import tempfile
import time
@ -21,7 +20,6 @@ class memoize(object):
self.persistent_file = persistent_file or os.path.join(tempfile.gettempdir(), 'powerline-cache')
def __call__(self, func):
@functools.wraps(func)
def decorated_function(*args, **kwargs):
if self.additional_key:
key = (func.__name__, args, tuple(kwargs.items()), self.additional_key())