Skip to content

Commit 2363baf

Browse files
committed
Remove deprecated methods from SimBaseLog
1 parent 425e1ed commit 2363baf

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

cocotb/log.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import os
3434
import sys
3535
import typing
36-
import warnings
3736

3837
import cocotb.ANSI as ANSI
3938
from cocotb import simulator
@@ -117,26 +116,6 @@ def default_config():
117116
class SimBaseLog(logging.getLoggerClass()):
118117
"""This class only exists for backwards compatibility"""
119118

120-
@property
121-
def logger(self):
122-
warnings.warn(
123-
"the .logger attribute should not be used now that `SimLog` "
124-
"returns a native logger instance directly.",
125-
DeprecationWarning,
126-
stacklevel=2,
127-
)
128-
return self
129-
130-
@property
131-
def colour(self):
132-
warnings.warn(
133-
"the .colour attribute may be removed in future, use the "
134-
"equivalent `cocotb.utils.want_color_output()` instead",
135-
DeprecationWarning,
136-
stacklevel=2,
137-
)
138-
return want_color_output()
139-
140119
def setLevel(self, level: typing.Union[int, str]) -> None:
141120
super().setLevel(level)
142121
if self.name == "gpi":

0 commit comments

Comments
 (0)