浏览代码

Change print to python3 syntax.

Bentley James Oakes 7 年之前
父节点
当前提交
825c823873

+ 3 - 3
src/python_sccd/python_sccd_compiler/utils.py

@@ -11,17 +11,17 @@ class Logger(object):
 	@staticmethod   
 	def showError(error):
 		if(Logger.verbose > -1) :
-			print "ERROR : " + error
+			print("ERROR : " + error)
 				
 	@staticmethod
 	def showWarning(warning):
 		if(Logger.verbose > 0) :
-			print "WARNING : " + warning
+			print("WARNING : " + warning)
 			
 	@staticmethod	
 	def showInfo(info):
 		if(Logger.verbose > 1) :
-			print "INFO : " + info
+			print("INFO : " + info)
 
 #######################
 

+ 1 - 1
src/python_sccd/python_sccd_runtime/statecharts_core.py

@@ -19,7 +19,7 @@ DEBUG = False
 
 def print_debug(msg):
     if DEBUG:
-        print msg
+        print(msg)
 
 class RuntimeException(Exception):
     """