Skip to content

Commit b089777

Browse files
committed
e.__str__() -> str(e)
1 parent 627a057 commit b089777

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

tools/check_board_header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# Python <3.11 doesn't have ExceptionGroup, so define a simple one
2525
class ExceptionGroup(Exception):
2626
def __init__(self, message, errors):
27-
message += "\n" + "\n".join(e.__str__() for e in errors)
27+
message += "\n" + "\n".join(str(e) for e in errors)
2828
super().__init__(message)
2929

3030

tools/extract_build_defines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Python <3.11 doesn't have ExceptionGroup, so define a simple one
2929
class ExceptionGroup(Exception):
3030
def __init__(self, message, errors):
31-
message += "\n" + "\n".join(e.__str__() for e in errors)
31+
message += "\n" + "\n".join(str(e) for e in errors)
3232
super().__init__(message)
3333

3434
logger = logging.getLogger(__name__)

tools/extract_cmake_configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Python <3.11 doesn't have ExceptionGroup, so define a simple one
2929
class ExceptionGroup(Exception):
3030
def __init__(self, message, errors):
31-
message += "\n" + "\n".join(e.__str__() for e in errors)
31+
message += "\n" + "\n".join(str(e) for e in errors)
3232
super().__init__(message)
3333

3434
logger = logging.getLogger(__name__)

tools/extract_cmake_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# Python <3.11 doesn't have ExceptionGroup, so define a simple one
2727
class ExceptionGroup(Exception):
2828
def __init__(self, message, errors):
29-
message += "\n" + "\n".join(e.__str__() for e in errors)
29+
message += "\n" + "\n".join(str(e) for e in errors)
3030
super().__init__(message)
3131

3232
logger = logging.getLogger(__name__)

tools/extract_configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# Python <3.11 doesn't have ExceptionGroup, so define a simple one
2929
class ExceptionGroup(Exception):
3030
def __init__(self, message, errors):
31-
message += "\n" + "\n".join(e.__str__() for e in errors)
31+
message += "\n" + "\n".join(str(e) for e in errors)
3232
super().__init__(message)
3333

3434
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)