- def drop_table (self, tablename):
- if self.table_exists (tablename):
- print >>sys.stderr, "%s: Dropping table %s"%(DBSchema.header,tablename)
- self.engine.execute ("drop table %s cascade"%tablename)
+ def drop_table(self, tablename):
+ if self.table_exists(tablename):
+ print("%s: Dropping table %s" %
+ (DBSchema.header, tablename), file=sys.stderr)
+ self.engine.execute("drop table %s cascade" % tablename)