summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-12-18 02:55:57 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-12-18 02:55:57 +0000
commit29d4ddc44e669767406f3f0f7524f97c48f815f6 (patch)
tree7b639fe71c7cd32b786fd1b20f0ab5fd9d619dde /rdiff-backup/rdiff_backup
parent74f0b728d89b3db84f9c410adb8c2a666fd19ef0 (diff)
downloadrdiff-backup-29d4ddc44e669767406f3f0f7524f97c48f815f6.tar.gz
Supress warnings about the deprecated sha module in Python 2.6. (Josh Nisly)
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@969 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup')
-rw-r--r--rdiff-backup/rdiff_backup/hash.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/rdiff-backup/rdiff_backup/hash.py b/rdiff-backup/rdiff_backup/hash.py
index 0279f70..317ad96 100644
--- a/rdiff-backup/rdiff_backup/hash.py
+++ b/rdiff-backup/rdiff_backup/hash.py
@@ -19,6 +19,11 @@
"""Contains a file wrapper that returns a hash on close"""
+# Until rdiff-backup is ported to Python 3 (or abandons support for versions
+# below Python 2.5), we'll ignore the warning about the deprecated sha module
+import warnings
+warnings.simplefilter('ignore')
+
import sha
import Globals