Fixed trim -> strip typo

svn: r11375
This commit is contained in:
Doug Blank 2008-12-01 04:43:19 +00:00
parent ff66065dde
commit c61ac47d57

View File

@ -57,12 +57,12 @@ class Database:
self.cursor = self.db.cursor()
def query(self, q, *args):
if q.trim().upper().startswith("DROP"):
if q.strip().upper().startswith("DROP"):
try:
self.cursor.execute(q, args)
self.db.commit()
except:
"no such table"
"no such table to drop: '%s'" % q
else:
self.cursor.execute(q, args)
self.db.commit()