Skip to content

Commit 41a2e67

Browse files
authored
__aiter__ is not a coroutine anymore, it is working in this way since python 3.5 (#11)
1 parent b634927 commit 41a2e67

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
dist: xenial
22
language: python
33
python:
4-
- '3.5'
54
- '3.6'
65
- '3.7'
76
install:

docs/_sources/index.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Welcome to vt-py's documentation!
99
`vt-py <https://github.com/VirusTotal/vt-py>`_ is the official Python client library
1010
for the `VirusTotal API v3 <https://developers.virustotal.com/v3.0/reference>`_.
1111

12-
This library requires Python 3.5.6+, Python 2.x is not supported. This is because vt-py
12+
This library requires Python 3.6.0+, Python 2.x is not supported. This is because vt-py
1313
makes use of the new `async/await <https://snarky.ca/how-the-heck-does-async-await-work-in-python-3-5/>`_
1414
syntax for implementing asynchronous coroutines.
1515

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@
153153
<h1>Welcome to vt-py’s documentation!<a class="headerlink" href="#welcome-to-vt-py-s-documentation" title="Permalink to this headline"></a></h1>
154154
<p><a class="reference external" href="https://github.com/VirusTotal/vt-py">vt-py</a> is the official Python client library
155155
for the <a class="reference external" href="https://developers.virustotal.com/v3.0/reference">VirusTotal API v3</a>.</p>
156-
<p>This library requires Python 3.5.6+, Python 2.x is not supported. This is because vt-py
156+
<p>This library requires Python 3.6.0+, Python 2.x is not supported. This is because vt-py
157157
makes use of the new <a class="reference external" href="https://snarky.ca/how-the-heck-does-async-await-work-in-python-3-5/">async/await</a>
158158
syntax for implementing asynchronous coroutines.</p>
159159
<p>Not supporting Python 2.x was a difficult decission to make, as we are aware

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Welcome to vt-py's documentation!
99
`vt-py <https://github.com/VirusTotal/vt-py>`_ is the official Python client library
1010
for the `VirusTotal API v3 <https://developers.virustotal.com/v3.0/reference>`_.
1111

12-
This library requires Python 3.5.6+, Python 2.x is not supported. This is because vt-py
12+
This library requires Python 3.6.0+, Python 2.x is not supported. This is because vt-py
1313
makes use of the new `async/await <https://snarky.ca/how-the-heck-does-async-await-work-in-python-3-5/>`_
1414
syntax for implementing asynchronous coroutines.
1515

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
with open('README.md', 'r') as fh:
2323
long_description = fh.read()
2424

25-
if sys.version_info < (3, 5, 0):
26-
raise RuntimeError('vt-py requires Python 3.5.0+')
25+
if sys.version_info < (3, 6, 0):
26+
raise RuntimeError('vt-py requires Python 3.6.0+')
2727

2828
install_requires = [
2929
'asyncio',
@@ -41,7 +41,7 @@
4141
long_description_content_type="text/markdown",
4242
url='https://github.com/VirusTotal/vt-py',
4343
packages=['vt'],
44-
python_requires='>=3.5.0',
44+
python_requires='>=3.6.0',
4545
install_requires=install_requires,
4646
classifiers=[
4747
'Programming Language :: Python :: 3',

vt/iterator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ def __iter__(self):
121121
self._batch_cursor = 0
122122
return self
123123

124-
async def __aiter__(self):
125-
self._items, self._server_cursor = await self._get_batch_async(
124+
def __aiter__(self):
125+
self._items, self._server_cursor = self._get_batch_async(
126126
self._batch_cursor)
127127
self._batch_cursor = 0
128128
return self

vt/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.4.0'
1+
__version__ = '0.5.0'

0 commit comments

Comments
 (0)