From 6f41cd87b7146c6ebe235097a50990cccc709ef9 Mon Sep 17 00:00:00 2001 From: richard Date: Wed, 22 Jun 2011 21:50:46 +0000 Subject: [PATCH] the "file" alias was introduced some time after this code was written git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4620 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/instance.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roundup/instance.py b/roundup/instance.py index ad256f7..6680ba8 100644 --- a/roundup/instance.py +++ b/roundup/instance.py @@ -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 -- 2.30.2