Update README.md
[cached-property.git] / cached_property.py
index eb9e90ff02d74be22db01da8a900824e69c5b892..3135871bfb0d9cda0a4c4eac6cdf8c47d890a289 100644 (file)
@@ -2,15 +2,16 @@
 
 __author__ = "Daniel Greenfeld"
 __email__ = "pydanny@gmail.com"
-__version__ = "1.4.2"
+__version__ = "1.5.2"
 __license__ = "BSD"
 
+from functools import wraps
 from time import time
 import threading
 
 try:
     import asyncio
-except ImportError:
+except (ImportError, SyntaxError):
     asyncio = None
 
 
@@ -36,7 +37,7 @@ class cached_property(object):
         return value
 
     def _wrap_in_coroutine(self, obj):
-
+        @wraps(obj)
         @asyncio.coroutine
         def wrapper():
             future = asyncio.ensure_future(self.func(obj))