From: Ethan Jackson Date: Tue, 15 Feb 2011 01:28:56 +0000 (-0800) Subject: ovs-bugtool: Ignore deprecation warnings. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4951ece66d368a97d740eb1a4cedd1dc84e3e7a1;p=openvswitch ovs-bugtool: Ignore deprecation warnings. 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 --- diff --git a/debian/ovs-bugtool b/debian/ovs-bugtool index 9bdf289a..69fe78ae 100755 --- a/debian/ovs-bugtool +++ b/debian/ovs-bugtool @@ -33,6 +33,9 @@ # or func_output(). # +import warnings +warnings.filterwarnings(action="ignore", category=DeprecationWarning) + import getopt import re import os