rdiff-backup-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Rdiff-backup-commits] rdiff-backup CHANGELOG rdiff_backup/hash.py


From: Andrew Ferguson
Subject: [Rdiff-backup-commits] rdiff-backup CHANGELOG rdiff_backup/hash.py
Date: Thu, 18 Dec 2008 02:55:57 +0000

CVSROOT:        /sources/rdiff-backup
Module name:    rdiff-backup
Changes by:     Andrew Ferguson <owsla> 08/12/18 02:55:57

Modified files:
        .              : CHANGELOG 
        rdiff_backup   : hash.py 

Log message:
        Supress warnings about the deprecated sha module in Python 2.6. (Josh 
Nisly)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/rdiff-backup/CHANGELOG?cvsroot=rdiff-backup&r1=1.326&r2=1.327
http://cvs.savannah.gnu.org/viewcvs/rdiff-backup/rdiff_backup/hash.py?cvsroot=rdiff-backup&r1=1.3&r2=1.4

Patches:
Index: CHANGELOG
===================================================================
RCS file: /sources/rdiff-backup/rdiff-backup/CHANGELOG,v
retrieving revision 1.326
retrieving revision 1.327
diff -u -b -r1.326 -r1.327
--- CHANGELOG   18 Dec 2008 00:44:24 -0000      1.326
+++ CHANGELOG   18 Dec 2008 02:55:57 -0000      1.327
@@ -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)
 

Index: rdiff_backup/hash.py
===================================================================
RCS file: /sources/rdiff-backup/rdiff-backup/rdiff_backup/hash.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- rdiff_backup/hash.py        1 Nov 2005 04:46:16 -0000       1.3
+++ rdiff_backup/hash.py        18 Dec 2008 02:55:57 -0000      1.4
@@ -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
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]