diff 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
line wrap: on
line diff
--- a/roundup/instance.py	Wed Jun 22 12:36:41 2011 +0000
+++ b/roundup/instance.py	Wed Jun 22 21:50:46 2011 +0000
@@ -87,8 +87,7 @@
                 sys.path.remove(libdir)
 
     def get_backend_name(self):
-        o = __builtin__.open
-        f = o(os.path.join(self.config.DATABASE, 'backend_name'))
+        f = file(os.path.join(self.config.DATABASE, 'backend_name'))
         name = f.readline().strip()
         f.close()
         return name

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