mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-11 16:36:14 +01:00
python 3 compatibility: exec
exec is no longer a statement
This commit is contained in:
parent
3a93ac6d10
commit
600a565428
@ -7840,7 +7840,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
if not extfile.endswith('.py'):
|
||||
continue
|
||||
try:
|
||||
exec open(os.path.join(plugin_dir, extfile))
|
||||
exec(open(os.path.join(plugin_dir, extfile)))
|
||||
except SyntaxError as e:
|
||||
if (os.environ.get('OSC_PLUGIN_FAIL_IGNORE')):
|
||||
print >>sys.stderr, "%s: %s\n" % (plugin_dir, e)
|
||||
|
Loading…
Reference in New Issue
Block a user