summaryrefslogtreecommitdiffstats
path: root/tools/perf_expectations
diff options
context:
space:
mode:
authorchase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-08 01:17:24 +0000
committerchase@chromium.org <chase@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-08 01:17:24 +0000
commit69882544bdbff2f2d5fcf2b3ef39a649df24f398 (patch)
tree215233668e8a5d32291a30ec83a70f225507a81b /tools/perf_expectations
parentf38adeeb281880518fdd9302ad66849c51897fab (diff)
downloadchromium_src-69882544bdbff2f2d5fcf2b3ef39a649df24f398.zip
chromium_src-69882544bdbff2f2d5fcf2b3ef39a649df24f398.tar.gz
chromium_src-69882544bdbff2f2d5fcf2b3ef39a649df24f398.tar.bz2
Fix some make_expectations.py issues.
Update indent spacing in a print call. Remove a case handler for open() which cannot happen. BUG=none TEST=none Review URL: http://codereview.chromium.org/5654003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68544 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/perf_expectations')
-rwxr-xr-xtools/perf_expectations/make_expectations.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/perf_expectations/make_expectations.py b/tools/perf_expectations/make_expectations.py
index 4fbee207..c19cea5 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