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

Unified Diff: build/mac/generate_localizer

Issue 160645: Add missing parens for format string to work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 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: build/mac/generate_localizer
===================================================================
--- build/mac/generate_localizer (revision 22480)
+++ build/mac/generate_localizer (working copy)
@@ -145,7 +145,11 @@
constants_list = extract_resource_constants(localizable_strings, xib_path)
if not constants_list:
sys.stderr.write("%s:0: warning: %s didn't find any resource strings\n" %
- xib_path, generate_localizer);
+ (xib_path, generate_localizer));
+ # Seed constant_list with an entry so things will compile even though the
+ # array sould really be empty (array_size in the generated file doesn't
+ # like an empty array).
+ constants_list.append('^0');
# Name the class based on the output file
class_name = os.path.splitext(os.path.basename(output_h_path))[0]
« 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