summaryrefslogtreecommitdiffstats
path: root/llvm/utils/DSAclean.py
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@quarkslab.com>2019-01-03 14:11:33 +0000
committerSerge Guelton <sguelton@quarkslab.com>2019-01-03 14:11:33 +0000
commit4a27478a5b8bd9f13fef65e66b291a352c532371 (patch)
treea086542fe11fba6d8779ca2fa96036d80af04312 /llvm/utils/DSAclean.py
parent41f98c834bc62a605ec51032482369cfa128d711 (diff)
downloadbcm5719-llvm-4a27478a5b8bd9f13fef65e66b291a352c532371.tar.gz
bcm5719-llvm-4a27478a5b8bd9f13fef65e66b291a352c532371.zip
Python compat - print statement
Make sure all print statements are compatible with Python 2 and Python3 using the `from __future__ import print_function` statement. Differential Revision: https://reviews.llvm.org/D56249 llvm-svn: 350307
Diffstat (limited to 'llvm/utils/DSAclean.py')
-rwxr-xr-xllvm/utils/DSAclean.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/utils/DSAclean.py b/llvm/utils/DSAclean.py
index 6c43357019e..789a825a067 100755
--- a/llvm/utils/DSAclean.py
+++ b/llvm/utils/DSAclean.py
@@ -8,10 +8,13 @@
#the comments
#10/12/2005: now it only removes nodes and edges for which the label is %tmp.# rather
#than removing all lines for which the lable CONTAINS %tmp.#
+
+from __future__ import print_function
+
import re
import sys
if( len(sys.argv) < 3 ):
- print 'usage is: ./DSAclean <dot_file_to_be_cleaned> <out_put_file>'
+ print('usage is: ./DSAclean <dot_file_to_be_cleaned> <out_put_file>')
sys.exit(1)
#get a file object
input = open(sys.argv[1], 'r')
OpenPOWER on IntegriCloud