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

Side by Side Diff: third_party/closure_compiler/processor.py

Issue 476453002: Python readability review for dbeam@. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Process Chrome resources (HTML/CSS/JS) to handle <include> and <if> tags.""" 5 """Process Chrome resources (HTML/CSS/JS) to handle <include> and <if> tags."""
6 6
7 from collections import defaultdict 7 from collections import defaultdict
8 import re 8 import re
9 import os 9 import os
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 Args: 110 Args:
111 line_number: A processed file's line number. 111 line_number: A processed file's line number.
112 """ 112 """
113 line_number = int(line_number) - 1 113 line_number = int(line_number) - 1
114 return LineNumber(self._lines[line_number][0], self._lines[line_number][1]) 114 return LineNumber(self._lines[line_number][0], self._lines[line_number][1])
115 115
116 @property 116 @property
117 def included_files(self): 117 def included_files(self):
118 """A list of files that were inlined via <include>.""" 118 """A list of files that were inlined via <include>."""
119 return self._included_files 119 return self._included_files
120
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698