Utilities/__init__.py

branch
Py2 comp.
changeset 3060
5883ce99ee12
parent 3058
0a02c433f52d
parent 3039
8dd0165d805d
child 3065
070b35dde35e
--- a/Utilities/__init__.py	Fri Nov 01 15:48:48 2013 +0100
+++ b/Utilities/__init__.py	Sun Nov 03 15:58:22 2013 +0100
@@ -201,7 +201,7 @@
                 raise CodingError(coding)
         else:
             if orig_coding and orig_coding.endswith(
-                ('-selected', '-default', '-guessed', '-ignore')):
+                    ('-selected', '-default', '-guessed', '-ignore')):
                 coding = orig_coding\
                     .replace("-selected", "")\
                     .replace("-default", "")\
@@ -865,8 +865,8 @@
             
             fentry = os.path.join(path, entry)
             if pattern and \
-            not os.path.isdir(fentry) and \
-            not fnmatch.fnmatch(entry, pattern):
+                not os.path.isdir(fentry) and \
+                    not fnmatch.fnmatch(entry, pattern):
                 # entry doesn't fit the given pattern
                 continue
                 
@@ -900,7 +900,7 @@
     dirs = []
     for name in names:
         if os.path.isdir(os.path.join(path, name)) and \
-          not os.path.islink(os.path.join(path, name)):
+                not os.path.islink(os.path.join(path, name)):
             exclude = 0
             for e in excludeDirs:
                 if name.split(os.sep, 1)[0] == e:
@@ -1219,7 +1219,8 @@
     if interpreter == "" or not isinpath(interpreter):
         return (True, file, 1, 0, "", 
                 QCoreApplication.translate("Utilities",
-                "{0} interpreter not configured.").format(interpreter_name), [])
+                    "{0} interpreter not configured.")
+                    .format(interpreter_name), [])
     syntaxChecker = os.path.join(getConfig('ericDir'),
                                  "Utilities", "SyntaxCheck.py")
     args = [syntaxChecker]
@@ -1329,7 +1330,7 @@
     return "{0}{1}{2}".format(Preferences.getQt("QtToolsPrefix4"),
                               toolname,
                               Preferences.getQt("QtToolsPostfix4")
-                             )
+                              )
 
 
 def getQtMacBundle(toolname):

eric ide

mercurial