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:01 UTC

[allura] 30/41: [#8349] python-modernize -n -w --no-diffs -f exec .

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 78c4372f7fd1a84c70d0a7ba70491206427ad6a3
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Mon Feb 10 15:21:55 2020 -0500

    [#8349] python-modernize -n -w --no-diffs -f exec .
---
 Allura/allura/command/script.py | 2 +-
 Allura/setup.py                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/command/script.py b/Allura/allura/command/script.py
index ee15316..fd59d82 100644
--- a/Allura/allura/command/script.py
+++ b/Allura/allura/command/script.py
@@ -67,7 +67,7 @@ class ScriptCommand(base.Command):
                     cProfile.run(fp, '%s.profile' %
                                  os.path.basename(self.args[1]))
                 else:
-                    exec fp.read() in ns
+                    exec(fp.read(), ns)
 
 
 class SetToolAccessCommand(base.Command):
diff --git a/Allura/setup.py b/Allura/setup.py
index 441d51a..48c2b4e 100644
--- a/Allura/setup.py
+++ b/Allura/setup.py
@@ -21,7 +21,7 @@ from __future__ import unicode_literals
 from __future__ import absolute_import
 from setuptools import setup, find_packages
 
-exec open('allura/version.py').read()
+exec(open('allura/version.py').read())
 
 PROJECT_DESCRIPTION = '''
 Allura is an open source implementation of a software "forge", a web site