Skip to content

Commit 0278cfa

Browse files
committed
Removed code specific to Python 3.9/3.10.
1 parent d1c2435 commit 0278cfa

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

sphinx_reports/Common.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
**Common exceptions, classes and helper functions.**
3333
"""
3434
from enum import Flag
35-
from sys import version_info
3635
from typing import List
3736

3837
from pyTooling.Decorators import export
@@ -41,15 +40,7 @@
4140

4241
@export
4342
class ReportExtensionError(ExtensionError):
44-
# WORKAROUND: for Python <3.11
45-
# Implementing a dummy method for Python versions before
46-
__notes__: List[str]
47-
if version_info < (3, 11): # pragma: no cover
48-
def add_note(self, message: str) -> None:
49-
try:
50-
self.__notes__.append(message)
51-
except AttributeError:
52-
self.__notes__ = [message]
43+
pass
5344

5445

5546
@export

0 commit comments

Comments
 (0)