Skip to content

Commit 46f7a29

Browse files
committed
Removed code from before Python 3.11.
1 parent a0c5b62 commit 46f7a29

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pyVHDLModel/Exception.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@
3535
The module ``Exceptions`` contains all structured errors that are raised by pyVHDLModel. Besides a default error
3636
message in english, each exception object contains one or multiple references to the exception's context.
3737
"""
38-
from sys import version_info
39-
from typing import List
40-
4138
from pyTooling.Decorators import export, readonly
4239

4340
from pyVHDLModel.Symbol import Symbol
@@ -47,16 +44,6 @@
4744
class VHDLModelException(Exception):
4845
"""Base-class for all exceptions (errors) raised by pyVHDLModel."""
4946

50-
# WORKAROUND: for Python <3.11
51-
# Implementing a dummy method for Python versions before
52-
__notes__: List[str]
53-
if version_info < (3, 11): # pragma: no cover
54-
def add_note(self, message: str) -> None:
55-
try:
56-
self.__notes__.append(message)
57-
except AttributeError:
58-
self.__notes__ = [message]
59-
6047

6148
@export
6249
class LibraryExistsInDesignError(VHDLModelException):

0 commit comments

Comments
 (0)