Mercurial > sqlpython
changeset 448:9708afb3bb41
oops, remove benchmark references
author | cat@eee |
---|---|
date | Wed, 10 Feb 2010 19:45:01 -0500 |
parents | 0b71da565ebe |
children | 63b9db1814e0 |
files | sqlpython/connections.py |
diffstat | 1 files changed, 7 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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()