You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2016/02/03 20:25:23 UTC

mesos git commit: Fixed support/apply-reviews.py to handle unicode strings.

Repository: mesos
Updated Branches:
  refs/heads/master 910036388 -> c93c5009c


Fixed support/apply-reviews.py to handle unicode strings.


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c93c5009
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c93c5009
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c93c5009

Branch: refs/heads/master
Commit: c93c5009cc0004388b8e248478a2291ff9d0c595
Parents: 9100363
Author: haosdent huang <ha...@gmail.com>
Authored: Wed Feb 3 11:05:54 2016 -0800
Committer: Vinod Kone <vi...@gmail.com>
Committed: Wed Feb 3 11:24:52 2016 -0800

----------------------------------------------------------------------
 support/apply-reviews.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c93c5009/support/apply-reviews.py
----------------------------------------------------------------------
diff --git a/support/apply-reviews.py b/support/apply-reviews.py
index ea5e43a..8dc1817 100755
--- a/support/apply-reviews.py
+++ b/support/apply-reviews.py
@@ -185,7 +185,7 @@ def commit_patch():
   else:
     amend = '-e'
 
-  cmd = 'git commit --author \'{author}\' {_amend} -am \'{message}\''\
+  cmd = u'git commit --author \'{author}\' {_amend} -am \'{message}\''\
         .format(author=quote(data['author']),
                 _amend=amend,
                 message=quote(data['message']))
@@ -248,8 +248,8 @@ def reviewboard_data():
   user = url_to_json(reviewboard_user_url(
     review.get('links').get('submitter').get('title'))).get('user')
 
-  author = '{author} <{email}>'.format(author=user.get('fullname'),
-                                       email=user.get('email'))
+  author = u'{author} <{email}>'.format(author=user.get('fullname'),
+                                        email=user.get('email'))
   message = '\n\n'.join(['{summary}',
                           '{description}',
                           'Review: {review_url}'])\