From 823a1876493a3f93ac67db2e8678e05e0990e2f9 Mon Sep 17 00:00:00 2001
From: Farhad Ali Irinel GUL <farhad_ali.gul@stud.acs.upb.ro>
Date: Wed, 17 May 2023 05:24:05 +0000
Subject: [PATCH] Adaugat paranteze la print

---
 assignments/3-parallel-hashtable/bench.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/assignments/3-parallel-hashtable/bench.py b/assignments/3-parallel-hashtable/bench.py
index 0dd1705..4750176 100644
--- a/assignments/3-parallel-hashtable/bench.py
+++ b/assignments/3-parallel-hashtable/bench.py
@@ -66,7 +66,7 @@ for testEntry in testConfig:
     testPoints = testEntry["points"]
     hwMaxPoints += testPoints
 
-    print "\n\n\n------- Test", testName, "START\t----------\n" 
+    print ("\n\n\n------- Test", testName, "START\t----------\n" )
 
     try:
         child = sp.Popen( ['./gpu_hashtable', testEntries, testChunks, testSpeed], stdout=sp.PIPE )
@@ -75,20 +75,20 @@ for testEntry in testConfig:
         print( output )
         rc = child.poll()
         if rc == 1:
-            print "------- Test", testName, "END\t---------- \t [ FAILED ]"
+            print ("------- Test", testName, "END\t---------- \t [ FAILED ]")
             continue
 
     except Exception:
 
-        print "------- Test", testName, "END\t---------- \t [ FAILED ]"
+        print ("------- Test", testName, "END\t---------- \t [ FAILED ]")
         traceback.print_exc()
-        print "Error with",  str(['./src/gpu_hashtable', testEntries, testChunks, testSpeed])
+        print ("Error with",  str(['./src/gpu_hashtable', testEntries, testChunks, testSpeed]))
         continue
 
-    print "------- Test ", testName, "END\t---------- \t [ OK RESULT: ", testPoints, " pts ]"
+    print ("------- Test ", testName, "END\t---------- \t [ OK RESULT: ", testPoints, " pts ]")
     hwPoints = hwPoints + testPoints
 
-    print "\nTotal so far: ", hwPoints, "/",  80
+    print ("\nTotal so far: ", hwPoints, "/",  80)
 
-print "\nTotal:", hwPoints, "/",  80
+print ("\nTotal:", hwPoints, "/",  80)
 
-- 
GitLab