Commits

Jason R. Coombs committed 77bfa31

Use Python 3.2+ implementations if present

Comments (0)

Files changed (2)

py31compat/functools.py

-from .cache import lru_cache
-from ._functools_wraps import update_wrapper, wraps
+try:
+	from functools import lru_cache, update_wrapper, wraps
+except ImportError:
+	from .cache import lru_cache
+	from ._functools_wraps import update_wrapper, wraps
 """
 Setup script for jaraco.compat package
 
-Copyright © 2010-2011 Jason R. Coombs
+Copyright © 2010-2012 Jason R. Coombs
 """
 import sys
 import os
 	setup_requires=[
 		'hgtools>=0.6.4',
 	],
+	use_2to3=True,
 )
 
 if __name__ == '__main__':