Commit 38e015e0 authored by Lysander Trischler's avatar Lysander Trischler
Browse files

Document aiohttp patch

Yes, this needs to be addressed properly, I know! But for now it's
better than nothing.
parent a3a20b1a
......@@ -12,7 +12,29 @@ Warning
At the moment it is a horribly hacked together piece of software that relies on
`my patched version <https://github.com/der-lyse/twtxt-1>`_ of the `twtxt CLI
client or reference implementation <https://github.com/buckket/twtxt/>`_ by the
original inventor of twtxt. ``tt`` only serves as a viewer of the twtxt
original inventor of twtxt. I also had to patch the `current_task` function in
*~/.local/lib/python3.9/site-packages/aiohttp/helpers.py* like that::
def current_task(loop=None):
if loop is None:
loop = asyncio.get_event_loop()
if hasattr(asyncio, 'current_task'):
task = asyncio.current_task()
else:
task = asyncio.Task.current_task(loop=loop)
if task is None:
if hasattr(loop, 'current_task'):
task = loop.current_task()
return task
First I thought I had messed up a system upgrade, but `deadguy
<https://dgy.fuckup.club/twtxt.txt>`_ on IRC experienced the same
`AttributeError` ('_asyncio.Task' has no attribute 'current_task'), that means
the library versions don't line up at all. I need to investigate that, too.
``tt`` only serves as a viewer of the twtxt
conversations, a `twtxt.net <https://twtxt.net/>`_ extension. It is also
possible to post twts or replies. The heavy lifting is still done by the
reference implementation, especially fetching and storing the *twtxt.txt* files
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment