Commit 8ea22292 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix code that is causing a pylint error in drover.py.

The previous 'fix' would fail if drover.properties would contain FILE_PATTERN = None
or something similar.

TEST=none
BUG=none

Review URL: http://codereview.chromium.org/3363013

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@59254 0039d316-1c4b-4281-b951-d872f2087c98
parent 1e629b3b
......@@ -402,9 +402,8 @@ def drover(options, args):
# Override the default properties if there is a drover.properties file.
global file_pattern_
if os.path.exists("drover.properties"):
f = open("drover.properties")
exec(f)
f.close()
FILE_PATTERN = file_pattern_
execfile("drover.properties")
if FILE_PATTERN:
file_pattern_ = FILE_PATTERN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment