diff MoinMoin/script/migration/wikiutil160a.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 9d510417add0
children
line wrap: on
line diff
--- a/MoinMoin/script/migration/wikiutil160a.py	Tue Sep 06 00:26:46 2016 +0200
+++ b/MoinMoin/script/migration/wikiutil160a.py	Tue Sep 06 01:00:25 2016 +0200
@@ -9,6 +9,7 @@
 
 import cgi
 import codecs
+import hashlib
 import os
 import re
 import time
@@ -1578,9 +1579,8 @@
 
 def createTicket(request, tm=None):
     """Create a ticket using a site-specific secret (the config)"""
-    from MoinMoin.support.python_compatibility import hash_new
     ticket = tm or "%010x" % time.time()
-    digest = hash_new('sha1', ticket)
+    digest = hashlib.new('sha1', ticket)
 
     varnames = ['data_dir', 'data_underlay_dir', 'language_default',
                 'mail_smarthost', 'mail_from', 'page_front_page',