Skip to content

Commit

Permalink
Fix scons-time fix
Browse files Browse the repository at this point in the history
Apparently, the weird structor of the SConsTimer class is such that
the previous fix for the "makedict" method fails on older Pythons.
Just moved the "static method" outside the class to be a top-level
function, that seems to work better.

Signed-off-by: Mats Wichmann <[email protected]>
  • Loading branch information
mwichmann committed Jul 6, 2024
1 parent 9fc1857 commit 93a7d1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
- Regularized header (copyright, licens) at top of documentation files
using SPDX.
- Updated introductory section of manual page.
- Minor cleanups in tests - drop unused "% locals()" stanzas.


RELEASE 4.7.0 - Sun, 17 Mar 2024 17:22:20 -0700
Expand Down
6 changes: 2 additions & 4 deletions bin/scons-time.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ def redirect_to_file(command, log):
def tee_to_file(command, log):
return '%s 2>&1 | tee %s' % (command, log)

def makedict(**kw):
return kw

class SConsTimer:
"""
Expand All @@ -278,10 +280,6 @@ class SConsTimer:
name = 'scons-time'
name_spaces = ' ' * len(name)

@staticmethod
def makedict(**kw):
return kw

default_settings = makedict(
chdir=None,
config_file=None,
Expand Down

0 comments on commit 93a7d1e

Please sign in to comment.