summaryrefslogtreecommitdiffstats
path: root/llvm/utils/DSAextract.py
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/DSAextract.py')
-rw-r--r--llvm/utils/DSAextract.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/utils/DSAextract.py b/llvm/utils/DSAextract.py
index 89dece1f333..258aac47e82 100644
--- a/llvm/utils/DSAextract.py
+++ b/llvm/utils/DSAextract.py
@@ -25,14 +25,16 @@
#currently the script prints the names it is searching for
#to STDOUT, so you can check to see if they are what you intend
+from __future__ import print_function
+
import re
import string
import sys
if len(sys.argv) < 3:
- print 'usage is ./DSAextract <dot_file_to_modify> \
- <output_file> [list of nodes to extract]'
+ print('usage is ./DSAextract <dot_file_to_modify> \
+ <output_file> [list of nodes to extract]')
#open the input file
input = open(sys.argv[1], 'r')
@@ -73,7 +75,7 @@ while buffer != '':
#test code
#print '\n'
-print node_name_set
+print(node_name_set)
#print node_set
OpenPOWER on IntegriCloud