diff options
author | Hugo <hugovk@users.noreply.github.com> | 2019-08-14 23:44:51 +0300 |
---|---|---|
committer | Hugo <hugovk@users.noreply.github.com> | 2019-08-15 12:24:33 +0300 |
commit | 2cec2adf8f54c9eda2a2674f565584aea709ef8a (patch) | |
tree | 5d965388d9b02f6b82cba84a53dd55ff979e45e2 /oauthlib/signals.py | |
parent | 3718a0e048e64994c2ee3819c5e5ed218a05f115 (diff) | |
download | oauthlib-2cec2adf8f54c9eda2a2674f565584aea709ef8a.tar.gz |
Upgrade Python syntax with pyupgrade
Diffstat (limited to 'oauthlib/signals.py')
-rw-r--r-- | oauthlib/signals.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |