autobahn-python icon indicating copy to clipboard operation
autobahn-python copied to clipboard

logger.warn is removed in Python 3.13

Open potens1 opened this issue 6 years ago • 5 comments

I know the warning comes from txaio, but, in fact, this is autobahn-python that uses the old deprecated log calls.

~~(Will try to do some PR later)~~

edit: changing warn by warning breaks all twisted tests, Logger has no attribute warning ...

ORIG TITLE: "txaio/aio.py:202: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead"

potens1 avatar Jan 03 '19 15:01 potens1

I guess you are not very interested in a PR with only the asyncio specific code doing warning and other left as-this ? If you are, I can do it, but, it's opening the door to have soon or later two autobahn version (twisted and asyncio, without txaio)

potens1 avatar Jan 03 '19 16:01 potens1

no, we won't merge anything that is only working on asyncio

oberstet avatar Jan 07 '19 10:01 oberstet

That said, we should still probably leave a bug open for this? (I would assume this means warn will at some point be removed)

meejah avatar Jan 07 '19 17:01 meejah

good point, might happen. reopened

oberstet avatar Jan 08 '19 15:01 oberstet

FYI, logger.warn is removed in Python 3.13: https://docs.python.org/3.13/whatsnew/3.13.html#logging

Jenselme avatar Jun 15 '24 15:06 Jenselme

this is gone on master, closing .. we do test on cpy311 and cpy314 fully green: https://github.com/crossbario/autobahn-python/actions/runs/18241551647

oberstet avatar Oct 04 '25 12:10 oberstet