Skip to content

Commit

Permalink
async -> is_async
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Feb 15, 2017
1 parent a8dc4a2 commit 67f4e89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion raven/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ def failed_send(e):

try:
transport = self.remote.get_transport()
if transport.async:
if transport.is_async:
transport.async_send(url, data, headers, self._successful_send,
failed_send)
else:
Expand Down
4 changes: 2 additions & 2 deletions raven/transport/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Transport(object):
sub-classing AsyncTransport).
"""

async = False
is_async = False
scheme = []

def send(self, url, data, headers):
Expand All @@ -35,7 +35,7 @@ class AsyncTransport(Transport):
You must implement a async_send method.
"""

async = True
is_async = True

def async_send(self, url, data, headers, success_cb, error_cb):
"""
Expand Down

0 comments on commit 67f4e89

Please sign in to comment.