diff MoinMoin/action/cache.py @ 6103:500f68d3e2fd

remove our own usage of python_compatibility module
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 06 Sep 2016 01:00:25 +0200
parents d73431c6d2c9
children 561b7a9c2bd9
line wrap: on
line diff
--- a/MoinMoin/action/cache.py	Tue Sep 06 00:26:46 2016 +0200
+++ b/MoinMoin/action/cache.py	Tue Sep 06 01:00:25 2016 +0200
@@ -28,6 +28,7 @@
 """
 
 from datetime import datetime
+import hmac
 
 from MoinMoin import log
 logging = log.getLogger(__name__)
@@ -39,7 +40,6 @@
 from MoinMoin import config, caching
 from MoinMoin.util import filesys
 from MoinMoin.action import AttachFile
-from MoinMoin.support.python_compatibility import hmac_new
 
 action_name = __name__.split('.')[-1]
 
@@ -99,7 +99,7 @@
         raise AssertionError('cache_key called with unsupported parameters')
 
     hmac_data = hmac_data.encode('utf-8')
-    key = hmac_new(secret, hmac_data).hexdigest()
+    key = hmac.new(secret, hmac_data).hexdigest()
     return key