diff MoinMoin/action/info.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 48c7d851938f
children
line wrap: on
line diff
--- a/MoinMoin/action/info.py	Tue Sep 06 00:26:46 2016 +0200
+++ b/MoinMoin/action/info.py	Tue Sep 06 01:00:25 2016 +0200
@@ -8,6 +8,7 @@
                 2006-2008 MoinMoin:ThomasWaldmann
     @license: GNU GPL, see COPYING for details.
 """
+import hashlib
 
 from MoinMoin import config, wikiutil, action
 from MoinMoin.Page import Page
@@ -33,8 +34,7 @@
                       f.text(_("Page size: %d") % page.size()),
                       f.paragraph(0))
 
-        from MoinMoin.support.python_compatibility import hash_new
-        digest = hash_new('sha1', page.get_raw_body().encode(config.charset)).hexdigest().upper()
+        digest = hashlib.new('sha1', page.get_raw_body().encode(config.charset)).hexdigest().upper()
         request.write(f.paragraph(1),
                       f.rawHTML('%(label)s <tt>%(value)s</tt>' % {
                           'label': _("SHA digest of this page's content is:"),