# HG changeset patch # User cat@eee # Date 1265849101 18000 # Node ID 9708afb3bb41d447ce16637a2bbb43838fe998d8 # Parent 0b71da565ebec31e063c6a968a475896b42fc122 oops, remove benchmark references diff -r 0b71da565ebe -r 9708afb3bb41 sqlpython/connections.py --- a/sqlpython/connections.py Wed Feb 10 13:30:23 2010 -0500 +++ b/sqlpython/connections.py Wed Feb 10 19:45:01 2010 -0500 @@ -7,7 +7,6 @@ import pickle import optparse import doctest -import benchmark try: import cx_Oracle @@ -250,10 +249,9 @@ return os.path.join(self.pickledir, ('%s.%s.%s.%s.pickle' % (self.rdbms, self.username, self.conn_data.hostname, self.database)).lower()) def retreive_pickled_gerald(self): - with benchmark.benchmark('gerald retrieve'): - picklefile = open(self.picklefile()) - schema = pickle.load(picklefile) - picklefile.close() + picklefile = open(self.picklefile()) + schema = pickle.load(picklefile) + picklefile.close() newgerald = gerald_classes[self.rdbms](self.username, None) newgerald.connect(self.conn_data.gerald_uri()) newgerald.schema = schema @@ -275,16 +273,14 @@ except IOError: pass self.db_instance.gerald.current = False - with benchmark.benchmark('metadata gather'): - newgerald = gerald_classes[self.db_instance.rdbms](self.db_instance.username, self.db_instance.conn_data.gerald_uri()) + newgerald = gerald_classes[self.db_instance.rdbms](self.db_instance.username, self.db_instance.conn_data.gerald_uri()) newgerald.descriptions = {} - with benchmark.benchmark('fill out descriptions'): - for (name, obj) in newgerald.schema.items(): - newgerald.descriptions[name] = ObjectDescriptor(name, obj) + for (name, obj) in newgerald.schema.items(): + newgerald.descriptions[name] = ObjectDescriptor(name, obj) newgerald.current = True newgerald.complete = True self.db_instance.gerald = newgerald self.db_instance.pickle() if __name__ == '__main__': - doctest.testmod() \ No newline at end of file + doctest.testmod()