Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: drover.py

Issue 3448001: Revert back to use exec() instead of execfile(). (Closed)
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: drover.py
diff --git a/drover.py b/drover.py
index 2f726a5d19fdc6b0a9c6f2022694bfdae7732c8e..8a56e2a3e21f22aa4bc7ce8907e7a2535123dce1 100755
--- a/drover.py
+++ b/drover.py
@@ -403,7 +403,9 @@ def drover(options, args):
global file_pattern_
if os.path.exists("drover.properties"):
FILE_PATTERN = file_pattern_
- execfile("drover.properties")
+ f = open("drover.properties")
+ exec(f)
+ f.close()
if FILE_PATTERN:
file_pattern_ = FILE_PATTERN
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698