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

Unified Diff: third_party/py_vulcanize/py_vulcanize/resource_loader.py

Issue 1376953005: Move tracing/third_party/tvcm -> third_party/py_vulcanize. (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Created 5 years, 2 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
Index: third_party/py_vulcanize/py_vulcanize/resource_loader.py
diff --git a/tracing/third_party/tvcm/tvcm/resource_loader.py b/third_party/py_vulcanize/py_vulcanize/resource_loader.py
similarity index 95%
rename from tracing/third_party/tvcm/tvcm/resource_loader.py
rename to third_party/py_vulcanize/py_vulcanize/resource_loader.py
index 165ba16f46ef4b4c0f17e773d8d67d9075fb598d..6793a63eb5a670d2a27339552e9c4782b16a4e46 100644
--- a/tracing/third_party/tvcm/tvcm/resource_loader.py
+++ b/third_party/py_vulcanize/py_vulcanize/resource_loader.py
@@ -7,11 +7,11 @@
import codecs
import os
-from tvcm import module
-from tvcm import style_sheet as style_sheet_module
-from tvcm import resource as resource_module
-from tvcm import html_module
-from tvcm import strip_js_comments
+from py_vulcanize import module
+from py_vulcanize import style_sheet as style_sheet_module
+from py_vulcanize import resource as resource_module
+from py_vulcanize import html_module
+from py_vulcanize import strip_js_comments
class ResourceLoader(object):
@@ -193,13 +193,13 @@ class ResourceLoader(object):
self.loaded_images[abs_path] = image
return image
- def GetStrippedJSForFilename(self, filename, early_out_if_no_tvcm):
+ def GetStrippedJSForFilename(self, filename, early_out_if_no_py_vulcanize):
if filename in self.stripped_js_by_filename:
return self.stripped_js_by_filename[filename]
with open(filename, 'r') as f:
contents = f.read(4096)
- if early_out_if_no_tvcm and ('tvcm' not in contents):
+ if early_out_if_no_py_vulcanize and ('py_vulcanize' not in contents):
return None
s = strip_js_comments.StripJSComments(contents)

Powered by Google App Engine
This is Rietveld 408576698