Skip to content

Commit

Permalink
Clean up NullHandler.
Browse files Browse the repository at this point in the history
  • Loading branch information
purple4reina committed Jan 8, 2025
1 parent 32d10f9 commit f337fea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions datadog/util/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,8 @@ def NullHandler(self):

# Python 2.6.x
else:
@property
def Handler(self):
from logging import Handler
return Handler

from logging import Handler

class NullHandler(Handler):
def emit(self, record):
Expand Down

0 comments on commit f337fea

Please sign in to comment.