[llvm] 1f592ec - find_interesting_reviews.py: avoid crash on non-ascii data.
Kristof Beyls via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 8 06:51:19 PST 2019
Author: Kristof Beyls
Date: 2019-11-08T14:51:36Z
New Revision: 1f592ecf82381f8689c4a4c6c863591679b2f665
URL: https://github.com/llvm/llvm-project/commit/1f592ecf82381f8689c4a4c6c863591679b2f665
DIFF: https://github.com/llvm/llvm-project/commit/1f592ecf82381f8689c4a4c6c863591679b2f665.diff
LOG: find_interesting_reviews.py: avoid crash on non-ascii data.
Added:
Modified:
llvm/utils/Reviewing/find_interesting_reviews.py
Removed:
################################################################################
diff --git a/llvm/utils/Reviewing/find_interesting_reviews.py b/llvm/utils/Reviewing/find_interesting_reviews.py
index 7bfbec8cfde9..a3b3ee6a7377 100644
--- a/llvm/utils/Reviewing/find_interesting_reviews.py
+++ b/llvm/utils/Reviewing/find_interesting_reviews.py
@@ -394,7 +394,7 @@ def print_most_recent_reviews(phab, days, filter_reviewers):
def add_msg(msg):
msgs.append(msg)
- print(msg)
+ print(msg.encode('utf-8'))
newest_reviews = get_most_recent_reviews(days)
add_msg(u"These are the reviews that look interesting to be reviewed. " +
More information about the llvm-commits
mailing list