Skip to content

Commit 17fc3e1

Browse files
Bernhard ReiterBernhard Reiter
authored andcommitted
Do not depend on a CPython implementation detail anymore...
...to make Roundup more compatible with other Python implementation like PyPy. Closes issue2550707. Thanks to Christof Meerwald.
1 parent 6dc8e64 commit 17fc3e1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Entries without name were done by Richard Jones.
77

88
Fixed:
99

10+
- Do not depend on a CPython implementation detail anymore to make Roundup
11+
more compatible with other Python implementation like PyPy.
12+
Closes issue2550707. Thanks to Christof Meerwald. (Bernhard Reiter)
1013
- Yet another fix to the mail gateway, messages got *all* files of
1114
an issue, not just the new ones. Thanks to Rafal Bisingier for
1215
reporting and proposing a fix. The regression test was updated.

roundup/instance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
import os
3232
import sys
33+
import __builtin__
3334
from roundup import configuration, mailgw
3435
from roundup import hyperdb, backends, actions
3536
from roundup.cgi import client, templating
@@ -86,7 +87,7 @@ def __init__(self, tracker_home, optimize=0):
8687
sys.path.remove(libdir)
8788

8889
def get_backend_name(self):
89-
o = __builtins__['open']
90+
o = __builtin__.open
9091
f = o(os.path.join(self.config.DATABASE, 'backend_name'))
9192
name = f.readline().strip()
9293
f.close()

0 commit comments

Comments
 (0)