Skip to content

Commit

Permalink
py3 compatibility: Fix for exec
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin committed Nov 13, 2015
1 parent e6e9396 commit e65760b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion master/buildbot/config.py
Expand Up @@ -194,7 +194,7 @@ def loadConfig(cls, basedir, filename):
sys.path.append(basedir)
try:
try:
exec f in localDict
exec(f, localDict)
except ConfigErrors as e:
for err in e.errors:
error(err)
Expand Down
2 changes: 1 addition & 1 deletion master/buildbot/scripts/base.py
Expand Up @@ -211,7 +211,7 @@ def loadOptionsFile(self, _here=None):
try:
with open(optfile, "r") as f:
options = f.read()
exec options in localDict
exec(options, localDict)
except Exception:
print("error while reading %s" % optfile)
raise
Expand Down

0 comments on commit e65760b

Please sign in to comment.