[PATCH] D70141: Make `print` behave in Python 2 as in Python 3.
Volodymyr Sapsai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 12 13:25:29 PST 2019
vsapsai created this revision.
vsapsai added a reviewer: azharudd.
Herald added subscribers: ributzka, dexonsmith, jkorous.
Currently the test "jenkins/test_monorepo_build.py" fails with Python 2 because
it expects the code `print("@@@", name, "@@@")` to print `@@@ Build Directory @@@`
while Python 2.7 treats the expression in parenthesis as a tuple and
prints `('@@@', 'Build Directory', '@@@')`
Repository:
rZORG LLVM Github Zorg
https://reviews.llvm.org/D70141
Files:
zorg/jenkins/monorepo_build.py
Index: zorg/jenkins/monorepo_build.py
===================================================================
--- zorg/jenkins/monorepo_build.py
+++ zorg/jenkins/monorepo_build.py
@@ -1,5 +1,6 @@
"""Build and test clangs."""
+from __future__ import print_function
import sys
import logging
import os
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70141.228949.patch
Type: text/x-patch
Size: 302 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191112/d2586ccd/attachment.bin>
More information about the llvm-commits
mailing list