From: richard Date: Wed, 22 Jun 2011 21:50:46 +0000 (+0000) Subject: the "file" alias was introduced some time after this code was written X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6f41cd87b7146c6ebe235097a50990cccc709ef9;p=roundup.git 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 --- 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