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

Unified Diff: runtime/tools/create_resources.py

Issue 26969005: Output character literals rather than ints in create_resources.py (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: runtime/tools/create_resources.py
diff --git a/runtime/tools/create_resources.py b/runtime/tools/create_resources.py
index 1e36420c1280b3baa36f80f29599868224e7651a..a70e0d07895195136609b729f787b6f8bc07601d 100644
--- a/runtime/tools/create_resources.py
+++ b/runtime/tools/create_resources.py
@@ -39,7 +39,7 @@ def makeResources(root_dir, package_dir, third_party_dir, rebase, input_files):
fileHandle = open(resource_file, 'rb')
lineCounter = 0
for byte in fileHandle.read():
- result += ' %d,' % ord(byte)
+ result += r" '\x%02x'," % ord(byte)
lineCounter += 1
if lineCounter == 10:
result += '\n '
« 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