Skip to content

Commit

Permalink
add changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vir-mir committed Sep 20, 2019
1 parent 37c6716 commit e95f739
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.0.0 (2019-09-20)
* Removal of an asynchronous call in favor of issues # 550
* Big editing of documentation and minor bugs #534

0.16.0 (2019-01-25)
^^^^^^^^^^^^^^^^^^^

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Some simple testing tasks (sorry, UNIX only).

clean-docs:
cd docs && rm -rf _build/html
cd docs && rm -rf _build/html

doc: clean-docs
cd docs && make html
Expand Down
2 changes: 1 addition & 1 deletion aiopg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'Connection', 'Cursor', 'Pool', 'version', 'version_info',
'DEFAULT_TIMEOUT', 'IsolationLevel', 'Transaction')

__version__ = '0.16.0'
__version__ = '1.0.0'

version = __version__ + ' , Python ' + sys.version

Expand Down
2 changes: 1 addition & 1 deletion docs/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ Cursor

The returned string is always a bytes string::

>>> await cur.mogrify("INSERT INTO test (num, data) VALUES (%s, %s)", (42, 'bar'))
>>> cur.mogrify("INSERT INTO test (num, data) VALUES (%s, %s)", (42, 'bar'))
"INSERT INTO test (num, data) VALUES (42, E'bar')"

.. method:: setinputsizes(sizes)
Expand Down
10 changes: 6 additions & 4 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ Current version is |release|.
.. _asyncio: http://docs.python.org/3.4/library/asyncio.html

.. warning::
1. Only supports ``python >= 3.5.2``
1. Removing await the before :meth:`Cursor.mogrify` function

2. Only support syntax ``async/await``
2. Only supports ``python >= 3.5.2``

3. :ref:`aiopg-one-cursor`
3. Only support syntax ``async/await``

4. :ref:`aiopg-run-loop`
4. :ref:`aiopg-one-cursor`

5. :ref:`aiopg-run-loop`


Features
Expand Down
4 changes: 2 additions & 2 deletions tests/test_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ async def test_executemany(cursor):
await cursor.executemany('SELECT %s', ['1', '2'])


async def test_mogrify(cursor):
ret = await cursor.mogrify('SELECT %s', ['1'])
def test_mogrify(cursor):
ret = cursor.mogrify('SELECT %s', ['1'])
assert b"SELECT '1'" == ret


Expand Down

0 comments on commit e95f739

Please sign in to comment.