summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3b08056)
raw | patch | inline | side by side (parent: 3b08056)
author | ber <ber@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 22 Jun 2011 12:34:31 +0000 (12:34 +0000) | ||
committer | ber <ber@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 22 Jun 2011 12:34:31 +0000 (12:34 +0000) |
more compatible with other Python implementation like PyPy.
Closes issue2550707. Thanks to Christof Meerwald.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4618 57a73879-2fb5-44c3-a270-3262357dd7e2
Closes issue2550707. Thanks to Christof Meerwald.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4618 57a73879-2fb5-44c3-a270-3262357dd7e2
CHANGES.txt | patch | blob | history | |
roundup/instance.py | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 641dc608946381b151e8996319ec1b69572d27db..cd0147590f0e8928667ebab4b5a39e6d4b850b7d 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
Fixed:
+- 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. (Bernhard Reiter)
- Yet another fix to the mail gateway, messages got *all* files of
an issue, not just the new ones. Thanks to Rafal Bisingier for
reporting and proposing a fix. The regression test was updated.
diff --git a/roundup/instance.py b/roundup/instance.py
index 4c8a97dd6ade14c2c6faa17f5a1290c50a88ac26..ad256f75f13560d47e10755df4726a6ded26ad4e 100644 (file)
--- a/roundup/instance.py
+++ b/roundup/instance.py
import os
import sys
+import __builtin__
from roundup import configuration, mailgw
from roundup import hyperdb, backends, actions
from roundup.cgi import client, templating
sys.path.remove(libdir)
def get_backend_name(self):
- o = __builtins__['open']
+ o = __builtin__.open
f = o(os.path.join(self.config.DATABASE, 'backend_name'))
name = f.readline().strip()
f.close()