diff mbox series

[2/2] python/semanage: Sort imports in alphabetical order

Message ID 20210106090007.176771-1-vmojzis@redhat.com (mailing list archive)
State Accepted
Headers show
Series None | expand

Commit Message

Vit Mojzis Jan. 6, 2021, 9 a.m. UTC
Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
---
 python/semanage/semanage | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Petr Lautrbach Jan. 13, 2021, 10:50 p.m. UTC | #1
Vit Mojzis <vmojzis@redhat.com> writes:

> Signed-off-by: Vit Mojzis <vmojzis@redhat.com>

Acked-by: Petr Lautrbach <plautrba@redhat.com>

Both merged, thanks!


> ---
>  python/semanage/semanage | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/python/semanage/semanage b/python/semanage/semanage
> index ce15983b..125271df 100644
> --- a/python/semanage/semanage
> +++ b/python/semanage/semanage
> @@ -23,11 +23,13 @@
>  #
>  #
>  
> -import traceback
>  import argparse
> +import os
> +import re
>  import seobject
>  import sys
> -import os
> +import traceback
> +
>  PROGNAME = "policycoreutils"
>  try:
>      import gettext
> @@ -798,8 +800,6 @@ def setupExportParser(subparsers):
>      exportParser.add_argument('-f', '--output_file', dest='output_file', action=SetExportFile, help=_('Output file'))
>      exportParser.set_defaults(func=handleExport)
>  
> -import re
> -
>  
>  def mkargv(line):
>      dquote = "\""
> -- 
> 2.29.2
diff mbox series

Patch

diff --git a/python/semanage/semanage b/python/semanage/semanage
index ce15983b..125271df 100644
--- a/python/semanage/semanage
+++ b/python/semanage/semanage
@@ -23,11 +23,13 @@ 
 #
 #
 
-import traceback
 import argparse
+import os
+import re
 import seobject
 import sys
-import os
+import traceback
+
 PROGNAME = "policycoreutils"
 try:
     import gettext
@@ -798,8 +800,6 @@  def setupExportParser(subparsers):
     exportParser.add_argument('-f', '--output_file', dest='output_file', action=SetExportFile, help=_('Output file'))
     exportParser.set_defaults(func=handleExport)
 
-import re
-
 
 def mkargv(line):
     dquote = "\""