Skip to contentSkip to conversation

Make support/policyvers.py compatible with Python 3

PATCH New Nicolas Iooss 2 participants 2 messages May 10, 2014 – May 13, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make support/policyvers.py compatible with Python 3

Add parenthesis around print statement, like in other Python scripts.

---
 support/policyvers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
support/policyvers.py +1 -1
index 0d969a4..a367ef1 100644
@@ -1,4 +1,4 @@
 #!/usr/bin/python
 import selinux
 if selinux.is_selinux_enabled():
-	print selinux.security_policyvers()
+	print(selinux.security_policyvers())
Signature · 1 line
1.9.2
#1 lore raw

PATCH 1/1 Make support/policyvers.py compatible with Python 3

Quoted 10 lines · Nicolas Iooss

Add parenthesis around print statement, like in other Python scripts.

---
 support/policyvers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
support/policyvers.py +0 -0
index 0d969a4..a367ef1 100644

support/policyvers.py line 4

Quoted 5 lines
support/policyvers.py +1 -1
@@ -1,4 +1,4 @@
 #!/usr/bin/python
 import selinux
 if selinux.is_selinux_enabled():
-	print selinux.security_policyvers()
+	print(selinux.security_policyvers())

Merged.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com