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

Unified Diff: tools/testing/legpad/legpad.py

Issue 9958048: display line count in legpad (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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
« tools/testing/legpad/legpad.dart ('K') | « tools/testing/legpad/legpad.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/legpad/legpad.py
diff --git a/tools/testing/legpad/legpad.py b/tools/testing/legpad/legpad.py
index 8c908c70e96863363700e29fb798e77d58211c68..7f5584a3bfb9537609ea79682c6d6205d3f27df0 100644
--- a/tools/testing/legpad/legpad.py
+++ b/tools/testing/legpad/legpad.py
@@ -286,9 +286,7 @@ class File(object):
self.pad = pad
self.name = name
self.id = pad.make_id(name)
- check_exists(name)
- with open(self.name, "r") as f:
- self.contents = f.read()
+ self.contents = read_file(name)
def directives(self):
"""Load files referenced by #source, #import and #native directives."""
« tools/testing/legpad/legpad.dart ('K') | « tools/testing/legpad/legpad.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698