Code

the "file" alias was introduced some time after this code was written
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 22 Jun 2011 21:50:46 +0000 (21:50 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 22 Jun 2011 21:50:46 +0000 (21:50 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4620 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/instance.py

index ad256f75f13560d47e10755df4726a6ded26ad4e..6680ba83668938e38dfb90b4a958b5a82e8257fc 100644 (file)
@@ -87,8 +87,7 @@ class Tracker:
                 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