diff options
author | David Cramer <dcramer@gmail.com> | 2017-02-09 12:12:48 -0800 |
---|---|---|
committer | David Cramer <dcramer@gmail.com> | 2017-02-09 12:12:48 -0800 |
commit | 14c6ed710b2bed79d4110c46fbab1952eb16f11d (patch) | |
tree | 5d4b3f2390a3ce608eafbf0d812ba772981bdff2 | |
parent | 927d760e8705fdb3c8a127b80a95d39cde64b432 (diff) | |
download | raven-14c6ed710b2bed79d4110c46fbab1952eb16f11d.tar.gz |
Remove unused compute_scope code (fixes GH-951)
-rw-r--r-- | raven/transport/base.py | 8 | ||||
-rw-r--r-- | raven/transport/registry.py | 8 |
2 files changed, 2 insertions, 14 deletions
diff --git a/raven/transport/base.py b/raven/transport/base.py index f70a65b..13b0960 100644 --- a/raven/transport/base.py +++ b/raven/transport/base.py @@ -13,10 +13,7 @@ class Transport(object): All transport implementations need to subclass this class You must implement a send method (or an async_send method if - sub-classing AsyncTransport) and the compute_scope method. - - Please see the HTTPTransport class for an example of a - compute_scope implementation. + sub-classing AsyncTransport). """ async = False @@ -35,8 +32,7 @@ class AsyncTransport(Transport): All asynchronous transport implementations should subclass this class. - You must implement a async_send method (and the compute_scope - method as describe on the base Transport class). + You must implement a async_send method. """ async = True diff --git a/raven/transport/registry.py b/raven/transport/registry.py index 30a90c3..9f5d3c5 100644 --- a/raven/transport/registry.py +++ b/raven/transport/registry.py @@ -62,14 +62,6 @@ class TransportRegistry(object): def get_transport_cls(self, scheme): return self._schemes[scheme] - def compute_scope(self, url, scope): - """ - Compute a scope dictionary. This may be overridden by custom - transports - """ - transport = self._schemes[url.scheme](url) - return transport.compute_scope(url, scope) - default_transports = [ HTTPTransport, |