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

Unified Diff: runtime/tools/create_resources.py

Issue 160253006: Replace '\' with '' in resources table (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
« 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: runtime/tools/create_resources.py
diff --git a/runtime/tools/create_resources.py b/runtime/tools/create_resources.py
index 255ef92abacdaf7bc5e7bb87b23640979d02d4f7..d55f4ee996b5543f1df45643955b4e31f5d67ff5 100644
--- a/runtime/tools/create_resources.py
+++ b/runtime/tools/create_resources.py
@@ -40,8 +40,9 @@ def makeResources(root_dir, input_files, table_name):
if lineCounter != 0:
result += '\n '
result += ' 0\n};\n\n'
+ resource_url_scrubbed = re.sub(r'\\', '', resource_url)
resources.append(
- (resource_url, resource_name, os.stat(resource_file).st_size) );
+ (resource_url_scrubbed, resource_name, os.stat(resource_file).st_size));
# Write the resource table.
result += 'ResourcesEntry __%s_resources_[] = ' % table_name
« 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