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

Unified Diff: my_activity.py

Issue 1151053003: my_activity.py: Fix to work with non-ascii characters (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 5 years, 7 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: my_activity.py
diff --git a/my_activity.py b/my_activity.py
index 593c187f43e3dc2cde1b97e732dc2971447100d8..cc7acb7a719a34d17d06c14a3d24fbd9f29aa762 100755
--- a/my_activity.py
+++ b/my_activity.py
@@ -602,7 +602,7 @@ class MyActivity(object):
output_format = specific_fmt if specific_fmt is not None else default_fmt
output_format = unicode(output_format)
required_values = {
- 'title': title,
+ 'title': title.encode('ascii', 'replace'),
'url': url,
'author': author,
}
« 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