You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2020/02/10 22:45:04 UTC
[allura] 33/41: [#8349] python-modernize -n -w --no-diffs -f
execfile .
This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch db/8349
in repository https://gitbox.apache.org/repos/asf/allura.git
commit db8d22e28eb3fae58478560c832f990104e5ee02
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Mon Feb 10 15:31:20 2020 -0500
[#8349] python-modernize -n -w --no-diffs -f execfile .
---
scripts/ApacheAccessHandler.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/ApacheAccessHandler.py b/scripts/ApacheAccessHandler.py
index 3b1b1bd..39c35b6 100644
--- a/scripts/ApacheAccessHandler.py
+++ b/scripts/ApacheAccessHandler.py
@@ -48,7 +48,7 @@ def load_requests_lib(req):
virtualenv_path = req.get_options().get('ALLURA_VIRTUALENV', None)
if virtualenv_path:
activate_this = '%s/bin/activate_this.py' % virtualenv_path
- execfile(activate_this, {'__file__': activate_this})
+ exec(compile(open(activate_this, "rb").read(), activate_this, 'exec'), {'__file__': activate_this})
global requests
import requests as requests_lib
requests = requests_lib