From ef219ae69a4cda6477e323b60ef117c7b66504c6 Mon Sep 17 00:00:00 2001 From: "Manuel Amador (Rudd-O)" Date: Fri, 3 Sep 2010 12:22:55 -0700 Subject: [PATCH] squelch mysqldb spurious warnings --- setup/bindir/cloud-setup-databases.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup/bindir/cloud-setup-databases.in b/setup/bindir/cloud-setup-databases.in index 067ff7b2156..e12a4c99d48 100755 --- a/setup/bindir/cloud-setup-databases.in +++ b/setup/bindir/cloud-setup-databases.in @@ -11,6 +11,10 @@ from optparse import OptionParser import commands import MySQLdb +# squelch mysqldb spurious warnings +import warnings +warnings.simplefilter('ignore') + # ---- This snippet of code adds the sources path and the waf configured PYTHONDIR to the Python path ---- # ---- We do this so cloud_utils can be looked up in the following order: # ---- 1) Sources directory