summaryrefslogtreecommitdiff
path: root/tests/path.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-10-28 16:53:05 +0000
committerGeorg Brandl <georg@python.org>2008-10-28 16:53:05 +0000
commit2ebb04f10f12ddb599d2ae0d6f7f056a68b635be (patch)
treefef1b7d97d067037f81d26c57def839deab31316 /tests/path.py
parentec2afc42ab62557fcd467c58ce9d7b7b224c2dad (diff)
downloadsphinx-git-2ebb04f10f12ddb599d2ae0d6f7f056a68b635be.tar.gz
Fix for r67038.
Diffstat (limited to 'tests/path.py')
-rw-r--r--tests/path.py19
1 files changed, 1 insertions, 18 deletions
diff --git a/tests/path.py b/tests/path.py
index 5ce1d1181..ceb895f50 100644
--- a/tests/path.py
+++ b/tests/path.py
@@ -29,7 +29,7 @@ Date: 9 Mar 2007
from __future__ import generators
-import sys, warnings, os, fnmatch, glob, shutil, codecs, md5
+import sys, warnings, os, fnmatch, glob, shutil, codecs
__version__ = '2.2'
__all__ = ['path']
@@ -760,23 +760,6 @@ class path(_base):
finally:
f.close()
- def read_md5(self):
- """ Calculate the md5 hash for this file.
-
- This reads through the entire file.
- """
- f = self.open('rb')
- try:
- m = md5.new()
- while True:
- d = f.read(8192)
- if not d:
- break
- m.update(d)
- finally:
- f.close()
- return m.digest()
-
# --- Methods for querying the filesystem.
exists = os.path.exists