Remove fallback to md5 module

All supported versions now include the hashlib module.
This commit is contained in:
Nick Hall committed 2015-03-16 14:20:19 +00:00
1 parent b5fb4292c9
commit 4d66fbe8c3
4 files changed
+4 -16

No files matched your search

+1 -4
View File
@@ -29,10 +29,7 @@ Handles generation and access to thumbnails used in GRAMPS.
#-------------------------------------------------------------------------
import os
import logging
try:
from hashlib import md5
except ImportError:
from md5 import md5
from hashlib import md5
#-------------------------------------------------------------------------
#
+1 -4
View File
@@ -62,10 +62,7 @@ ODFDoc : used to generate Open Office Document
#
#-------------------------------------------------------------------------
import os
try:
from hashlib import md5
except ImportError:
from md5 import md5
from hashlib import md5
import zipfile
import time
from io import StringIO
+1 -4
View File
@@ -34,10 +34,7 @@ This is the research tool, not the low-level data ingerity check.
import os
import pickle
try:
from hashlib import md5
except ImportError:
from md5 import md5
from hashlib import md5
from gramps.gen.errors import WindowActiveError
#------------------------------------------------------------------------
+1 -4
View File
@@ -71,10 +71,7 @@ import os
import sys
import re
import copy
try:
from hashlib import md5
except ImportError:
from md5 import md5
from hashlib import md5
import time, datetime
import shutil
import codecs