All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH] Make support/policyvers.py compatible with Python 3
@ 2014-05-10 14:44 Nicolas Iooss
  2014-05-13 12:46 ` Christopher J. PeBenito
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Iooss @ 2014-05-10 14:44 UTC (permalink / raw)
  To: refpolicy

Add parenthesis around print statement, like in other Python scripts.
---
 support/policyvers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/policyvers.py b/support/policyvers.py
index 0d969a4..a367ef1 100644
--- a/support/policyvers.py
+++ b/support/policyvers.py
@@ -1,4 +1,4 @@
 #!/usr/bin/python
 import selinux
 if selinux.is_selinux_enabled():
-	print selinux.security_policyvers()
+	print(selinux.security_policyvers())
-- 
1.9.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [refpolicy] [PATCH] Make support/policyvers.py compatible with Python 3
  2014-05-10 14:44 [refpolicy] [PATCH] Make support/policyvers.py compatible with Python 3 Nicolas Iooss
@ 2014-05-13 12:46 ` Christopher J. PeBenito
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher J. PeBenito @ 2014-05-13 12:46 UTC (permalink / raw)
  To: refpolicy

On 05/10/2014 10:44 AM, Nicolas Iooss wrote:
> Add parenthesis around print statement, like in other Python scripts.
> ---
>  support/policyvers.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/support/policyvers.py b/support/policyvers.py
> index 0d969a4..a367ef1 100644
> --- a/support/policyvers.py
> +++ b/support/policyvers.py
> @@ -1,4 +1,4 @@
>  #!/usr/bin/python
>  import selinux
>  if selinux.is_selinux_enabled():
> -	print selinux.security_policyvers()
> +	print(selinux.security_policyvers())
 
Merged.

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-13 12:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-10 14:44 [refpolicy] [PATCH] Make support/policyvers.py compatible with Python 3 Nicolas Iooss
2014-05-13 12:46 ` Christopher J. PeBenito

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.