summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-02-26 04:49:27 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-02-26 04:49:27 (GMT)
commit3f1009759b233ba552b4fb496c3663bb24230f0e (patch)
tree7dfd63bb4dbfc27205b9b231ccf4739bc3c723a4 /src
parent58bd2a948ecf3089ac3a1ea47888748a8b6693bb (diff)
downloadSCons-3f1009759b233ba552b4fb496c3663bb24230f0e.zip
SCons-3f1009759b233ba552b4fb496c3663bb24230f0e.tar.gz
SCons-3f1009759b233ba552b4fb496c3663bb24230f0e.tar.bz2
PEP-8 changes
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Script/Main.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/SCons/Script/Main.py b/src/engine/SCons/Script/Main.py
index f8cb24c..b82b6a5 100644
--- a/src/engine/SCons/Script/Main.py
+++ b/src/engine/SCons/Script/Main.py
@@ -65,6 +65,7 @@ import SCons.Warnings
import SCons.Script.Interactive
+
def fetch_win32_parallel_msg():
# A subsidiary function that exists solely to isolate this import
# so we don't have to pull it in on all platforms, and so that an
@@ -75,6 +76,7 @@ def fetch_win32_parallel_msg():
import SCons.Platform.win32
return SCons.Platform.win32.parallel_msg
+
def revert_io():
# This call is added to revert stderr and stdout to the original
# ones just in case some build rule or something else in the system
@@ -91,6 +93,7 @@ progress_display = SCons.Util.DisplayEngine()
first_command_start = None
last_command_end = None
+
class Progressor(object):
prev = ''
count = 0
@@ -154,9 +157,11 @@ def Progress(*args, **kw):
_BuildFailures = []
+
def GetBuildFailures():
return _BuildFailures
+
class BuildTask(SCons.Taskmaster.OutOfDateTask):
"""An SCons build task."""
progress = ProgressObject
@@ -306,6 +311,7 @@ class BuildTask(SCons.Taskmaster.OutOfDateTask):
if explanation:
sys.stdout.write("scons: " + explanation)
+
class CleanTask(SCons.Taskmaster.AlwaysTask):
"""An SCons clean task."""
def fs_delete(self, path, pathstr, remove=True):