diff options
-rw-r--r-- | sphinx/builders/html.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sphinx/builders/html.py b/sphinx/builders/html.py index 2b92c2cb6..4a26eed86 100644 --- a/sphinx/builders/html.py +++ b/sphinx/builders/html.py @@ -16,12 +16,10 @@ import posixpath import cPickle as pickle from os import path try: - import hashlib - md5 = hashlib.md5 + from hashlib import md5 except ImportError: # 2.4 compatibility - import md5 - md5 = md5.new + from md5 import md5 from docutils import nodes from docutils.io import DocTreeInput, StringOutput |