ovs-bugtool: Ignore deprecation warnings.
authorEthan Jackson <ethan@nicira.com>
Tue, 15 Feb 2011 01:28:56 +0000 (17:28 -0800)
committerEthan Jackson <ethan@nicira.com>
Tue, 15 Feb 2011 19:15:27 +0000 (11:15 -0800)
Since we have to support many versions of Python, this commit
forces ovs-bugtool to ignore deprecation warnings.  They were
complaining about use of the md5 module whose replacement does not
appear until Python 2.5.  In Python 2.7 deprecation warnings are
ignored by default.

Bug #4373

debian/ovs-bugtool

index 9bdf289..69fe78a 100755 (executable)
@@ -33,6 +33,9 @@
 # or func_output().
 #
 
+import warnings
+warnings.filterwarnings(action="ignore", category=DeprecationWarning)
+
 import getopt
 import re
 import os