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

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..76b2714f047e4fe2cd06f64b4865fec014fffac7 100755
--- a/my_activity.py
+++ b/my_activity.py
@@ -37,6 +37,7 @@ import urllib
import urllib2
import auth
+import fix_encoding
import gerrit_util
import rietveld
from third_party import upload
@@ -611,7 +612,7 @@ class MyActivity(object):
values = dict(required_values.items() + optional_values.items())
else:
values = required_values
- print output_format.format(**values)
+ print output_format.format(**values).encode(sys.getdefaultencoding())
def filter_issue(self, issue, should_filter_by_user=True):
@@ -861,6 +862,9 @@ def main():
if __name__ == '__main__':
+ # Fix encoding to support non-ascii issue titles.
+ fix_encoding.fix_encoding()
+
try:
sys.exit(main())
except KeyboardInterrupt:
« 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