diff options
author | bdbaddog <bill@baddogconsulting.com> | 2019-06-25 21:44:05 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2019-06-25 21:44:05 (GMT) |
commit | 096e6b053fa4b85cf74e846c24bba23794c9eb7b (patch) | |
tree | 21eb95b2e701fa2b77a971d9ede33c34da5c7c6e /src/engine/SCons/Action.py | |
parent | b66be8353c8a0d5e188bade8610068e9ad18af9d (diff) | |
download | SCons-096e6b053fa4b85cf74e846c24bba23794c9eb7b.zip SCons-096e6b053fa4b85cf74e846c24bba23794c9eb7b.tar.gz SCons-096e6b053fa4b85cf74e846c24bba23794c9eb7b.tar.bz2 |
Remove join and list comprehension when not needed in Action.get_content(). Yields some speedup.
Diffstat (limited to 'src/engine/SCons/Action.py')
-rw-r--r-- | src/engine/SCons/Action.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Action.py b/src/engine/SCons/Action.py index 3ec8a4c..c6fc575 100644 --- a/src/engine/SCons/Action.py +++ b/src/engine/SCons/Action.py @@ -534,7 +534,7 @@ class ActionBase(object): result = self.get_presig(target, source, env) if not isinstance(result,(bytes, bytearray)): - result = bytearray("",'utf-8').join([ SCons.Util.to_bytes(r) for r in result ]) + result = bytearray(result, 'utf-8') else: # Make a copy and put in bytearray, without this the contents returned by get_presig # can be changed by the logic below, appending with each call and causing very |