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

Unified Diff: compiler/generate_source_list.py

Issue 8393009: Handle paths with raw strings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 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
« 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: compiler/generate_source_list.py
diff --git a/compiler/generate_source_list.py b/compiler/generate_source_list.py
index df7e029973128d31284d0aca4b107df0d7129ef4..cff0778b35d455537deaa6b91fbc6e00ab9a69ba 100644
--- a/compiler/generate_source_list.py
+++ b/compiler/generate_source_list.py
@@ -54,7 +54,7 @@ class Generator:
def _print_gypi_files(self, out, name, files):
out.write(" '%s': [\n" % name)
for filename in files:
- out.write(" '%s/%s',\n" % (self.path, filename))
+ out.write(''' r'%s',%s''' % (os.path.join(self.path, filename),'\n'))
zundel 2011/10/25 19:26:44 PYTHON STYLE GUIDE VIOLATION ALERT: need space af
out.write(" ],\n")
def _print_ant_files(self, out, name, files):
« 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