Skip to content

Commit 0f004a0

Browse files
author
Richard Jones
committed
the "file" alias was introduced some time after this code was written
1 parent e4c77cc commit 0f004a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

roundup/instance.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ def __init__(self, tracker_home, optimize=0):
8787
sys.path.remove(libdir)
8888

8989
def get_backend_name(self):
90-
o = __builtin__.open
91-
f = o(os.path.join(self.config.DATABASE, 'backend_name'))
90+
f = file(os.path.join(self.config.DATABASE, 'backend_name'))
9291
name = f.readline().strip()
9392
f.close()
9493
return name

0 commit comments

Comments
 (0)