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

Unified Diff: tools/perf_expectations/make_expectations.py

Issue 5654003: Fix some make_expectations.py issues. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/tools/perf_expectations
Patch Set: Created 10 years 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: tools/perf_expectations/make_expectations.py
diff --git a/tools/perf_expectations/make_expectations.py b/tools/perf_expectations/make_expectations.py
index 4fbee2075928382ba2101a3a096e3a070bab6387..c19cea5a42074711d53a5f1212ff7a03ab9f87d3 100755
--- a/tools/perf_expectations/make_expectations.py
+++ b/tools/perf_expectations/make_expectations.py
@@ -25,10 +25,8 @@ def ReadFile(filename):
file = open(filename, 'r')
except IOError, e:
print >> sys.stderr, ('I/O Error reading file %s(%s): %s' %
- (filename, e.errno, e.strerror))
+ (filename, e.errno, e.strerror))
raise e
- if not file:
- return None
contents = file.read()
file.close()
return contents
« 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