From 2cec2adf8f54c9eda2a2674f565584aea709ef8a Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 14 Aug 2019 23:44:51 +0300 Subject: Upgrade Python syntax with pyupgrade --- oauthlib/signals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'oauthlib/signals.py') diff --git a/oauthlib/signals.py b/oauthlib/signals.py index 22d47a4..9356cc2 100644 --- a/oauthlib/signals.py +++ b/oauthlib/signals.py @@ -9,11 +9,11 @@ try: from blinker import Namespace signals_available = True except ImportError: # noqa - class Namespace(object): + class Namespace: def signal(self, name, doc=None): return _FakeSignal(name, doc) - class _FakeSignal(object): + class _FakeSignal: """If blinker is unavailable, create a fake class with the same interface that allows sending of signals but will fail with an error on anything else. Instead of doing anything on send, it -- cgit v1.2.1