Skip to content

Commit

Permalink
Merge pull request #4448 from fazledyn-or/Fix_Improper_Method_Call_No…
Browse files Browse the repository at this point in the history
…tImplementedError

Fixed Improper Method Call: Replaced `NotImplementedError`
  • Loading branch information
bdbaddog authored Dec 6, 2023
2 parents a998627 + cd2abea commit 00c8ea3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER
- Fix of the --debug=sconscript option to return exist statements when using return
statement with stop flag enabled

From Ataf Fazledin Ahamed:
- Use of NotImplemented instead of NotImplementedError for special methods
of _ListVariable class

RELEASE 4.6.0 - Sun, 19 Nov 2023 17:22:20 -0700

From Max Bachmann:
Expand Down
5 changes: 2 additions & 3 deletions RELEASE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ FIXES
IMPROVEMENTS
------------

- List improvements that wouldn't be visible to the user in the
documentation: performance improvements (describe the circumstances
under which they would be observed), or major code cleanups
- Use of NotImplemented instead of NotImplementedError for special methods
of _ListVariable class

PACKAGING
---------
Expand Down
12 changes: 6 additions & 6 deletions SCons/Variables/ListVariable.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@ def __init__(self, initlist=None, allowedElems=None) -> None:
self.allowedElems = sorted(allowedElems)

def __cmp__(self, other):
raise NotImplementedError
return NotImplemented

def __eq__(self, other):
raise NotImplementedError
return NotImplemented

def __ge__(self, other):
raise NotImplementedError
return NotImplemented

def __gt__(self, other):
raise NotImplementedError
return NotImplemented

def __le__(self, other):
raise NotImplementedError
return NotImplemented

def __lt__(self, other):
raise NotImplementedError
return NotImplemented

def __str__(self) -> str:
if not len(self):
Expand Down

0 comments on commit 00c8ea3

Please sign in to comment.