squelch mysqldb spurious warnings

This commit is contained in:
Manuel Amador (Rudd-O) 2010-09-03 12:22:55 -07:00
parent 1ce6b5baa2
commit ef219ae69a
1 changed files with 4 additions and 0 deletions

View File

@ -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