comparison roundup/instance.py @ 4508:996cc758f704

the "file" alias was introduced some time after this code was written
author Richard Jones <richard@users.sourceforge.net>
date Wed, 22 Jun 2011 21:50:46 +0000
parents 51aa98cda2cf
children 0fa45d39efee
comparison
equal deleted inserted replaced
4507:77e87a8c493e 4508:996cc758f704
85 self.db_open = 0 85 self.db_open = 0
86 if libdir in sys.path: 86 if libdir in sys.path:
87 sys.path.remove(libdir) 87 sys.path.remove(libdir)
88 88
89 def get_backend_name(self): 89 def get_backend_name(self):
90 o = __builtin__.open 90 f = file(os.path.join(self.config.DATABASE, 'backend_name'))
91 f = o(os.path.join(self.config.DATABASE, 'backend_name'))
92 name = f.readline().strip() 91 name = f.readline().strip()
93 f.close() 92 f.close()
94 return name 93 return name
95 94
96 def open(self, name=None): 95 def open(self, name=None):

Roundup Issue Tracker: http://roundup-tracker.org/