summaryrefslogtreecommitdiff
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
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
-rw-r--r--rdiff-backup/CHANGELOG3
-rw-r--r--rdiff-backup/rdiff_backup/hash.py5
2 files changed, 8 insertions, 0 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG
index 7698fcd..4bf5fd3 100644
--- a/rdiff-backup/CHANGELOG
+++ b/rdiff-backup/CHANGELOG
@@ -1,6 +1,9 @@
New in v1.2.3 (????/??/??)
---------------------------
+Supress warnings about the deprecated sha module in Python 2.6. We'll remove
+this after rdiff-backup is ported to Python 3. (Patch from Josh Nisly)
+
Test for symlink permissions now produces a functioning symlink. Thanks to
Julien Poffet for reporting the issue. (Andrew Ferguson)
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