Skip to contentSkip to conversation

list-workarounds: Fix python 2 print statement

PATCH In review Damien Lespiau 3 participants 3 messages Feb 8, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 list-workarounds: Fix python 2 print statement

That script is a python 3 script, so we can't use the python 2 print statement, it's a function now.

I missed it in the review because reviewing a diff without additional context gives you a partial story.

Cc Sameer Kibey <[email protected]>
Cc Dylan Baker <[email protected]>
---
 scripts/list-workarounds | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/list-workarounds +1 -1
index 8b41ae5..70c026d 100755
@@ -96,7 +96,7 @@ def print_workarounds(project_root, driver_dir, project):
 		sys.exit(1)
 
 	parse(work_arounds)
-	print "\nList of workarounds found in %s:" % project
+	print("\nList of workarounds found in %s:" % project)
 	for wa in sorted(workarounds.keys()):
 		if not options.platform:
 			print("%s: %s" % (wa, ', '.join(workarounds[wa])))
Signature · 6 lines
2.4.3

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw

Oops, sorry for the error. Thanks for fixing it.
Sameer

Quoted 35 lines

-----Original Message-----
From: Lespiau, Damien
Sent: Monday, February 08, 2016 4:08 AM
To: [email protected]
Cc: Kibey, Sameer; Dylan Baker
Subject: [PATCH i-g-t] list-workarounds: Fix python 2 print statement

That script is a python 3 script, so we can't use the python 2 print statement, it's a function now.

I missed it in the review because reviewing a diff without additional context gives you a partial story.

Cc Sameer Kibey <[email protected]>
Cc Dylan Baker <[email protected]>
---
 scripts/list-workarounds | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/list-workarounds index renamed from scripts/list-workarounds +0 -0

8b41ae5..70c026d 100755

scripts/list-workarounds +0 -0
@@ -96,7 +96,7 @@ def print_workarounds(project_root, driver_dir,

project):

scripts/list-workarounds +1 -2
 		sys.exit(1)
 
 	parse(work_arounds)
-	print "\nList of workarounds found in %s:" % project
+	print("\nList of workarounds found in %s:" % project)
 	for wa in sorted(workarounds.keys()):
 		if not options.platform:
 			print("%s: %s" % (wa, ', '.join(workarounds[wa])))
--
Quoted 1 line

2.4.3

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reviewed-by on v1 1/1
#2 lore raw
In reply to Damien Lespiau

Looks good to me.

Quoting Damien Lespiau (2016-02-08 04:08:29)

Quoted 29 lines

That script is a python 3 script, so we can't use the python 2 print statement, it's a function now.

I missed it in the review because reviewing a diff without additional context gives you a partial story.

Cc Sameer Kibey <[email protected]>
Cc Dylan Baker <[email protected]>
---
 scripts/list-workarounds | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/list-workarounds +1 -1
index 8b41ae5..70c026d 100755
@@ -96,7 +96,7 @@ def print_workarounds(project_root, driver_dir, project):
                sys.exit(1)
 
        parse(work_arounds)
-       print "\nList of workarounds found in %s:" % project
+       print("\nList of workarounds found in %s:" % project)
        for wa in sorted(workarounds.keys()):
                if not options.platform:
                        print("%s: %s" % (wa, ', '.join(workarounds[wa])))
Signature · 1 line
2.4.3

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx