Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Fix supported Python versions. (#19)
Browse files Browse the repository at this point in the history
* Fix supported Python versions.

* Fix non used variable.

* Fix abstract methods signature.
  • Loading branch information
hellysmile authored and ashwoods committed Oct 14, 2017
1 parent 02e079e commit e896d35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Requirements
============

- `raven-python>=5.4.0`
- `python>=3.3`
- `python>=3.4.2`
- `aiohttp>=2.0`

Usage
Expand Down
6 changes: 3 additions & 3 deletions raven_aiohttp.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ def _do_send(self, url, data, headers, success_cb, failure_cb):
yield from session.close()

@abc.abstractmethod
def _async_send(self, *, timeout=None): # pragma: no cover
def _async_send(self, url, data, headers, success_cb, failure_cb): # pragma: no cover
pass

@abc.abstractmethod
@asyncio.coroutine
def _close(self, *, timeout=None): # pragma: no cover
def _close(self): # pragma: no cover
pass

def async_send(self, url, data, headers, success_cb, failure_cb):
Expand Down Expand Up @@ -183,7 +183,7 @@ def _async_send(self, url, data, headers, success_cb, failure_cb):
task.add_done_callback(self._tasks.remove)

@asyncio.coroutine
def _close(self, timeout=None):
def _close(self):
yield from asyncio.gather(
*self._tasks,
return_exceptions=True,
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def run_tests(self):
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
Expand Down

0 comments on commit e896d35

Please sign in to comment.