diff sat_frontends/quick_frontend/quick_utils.py @ 2624:56f94936df1e

code style reformatting using black
author Goffi <goffi@goffi.org>
date Wed, 27 Jun 2018 20:14:46 +0200
parents 26edcf3a30eb
children 003b8b4b56a7
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_utils.py	Wed Jun 27 07:51:29 2018 +0200
+++ b/sat_frontends/quick_frontend/quick_utils.py	Wed Jun 27 20:14:46 2018 +0200
@@ -21,6 +21,7 @@
 from os.path import exists, splitext
 from optparse import OptionParser
 
+
 def getNewPath(path):
     """ Check if path exists, and find a non existant path if needed """
     idx = 2
@@ -31,21 +32,23 @@
         new_path = "%s_%d%s" % (root, idx, ext)
         if not exists(new_path):
             return new_path
-        idx+=1
+        idx += 1
+
 
 def check_options():
     """Check command line options"""
-    usage = _("""
+    usage = _(
+        """
     %prog [options]
 
     %prog --help for options list
-    """)
-    parser = OptionParser(usage=usage) # TODO: use argparse
+    """
+    )
+    parser = OptionParser(usage=usage)  # TODO: use argparse
 
     parser.add_option("-p", "--profile", help=_("Select the profile to use"))
 
     (options, args) = parser.parse_args()
     if options.profile:
-        options.profile = options.profile.decode('utf-8')
+        options.profile = options.profile.decode("utf-8")
     return options
-