From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Mon, 5 Sep 2022 20:27:05 +0000 (-0400) Subject: Mitigate deprecation of aiohttp's `@middleware` decorator (#3259) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/062e644aae4299a320aeac59085df4c020ba6c81?hp=062e644aae4299a320aeac59085df4c020ba6c81 Mitigate deprecation of aiohttp's `@middleware` decorator (#3259) This is deprecated since aiohttp 4.0. If it doesn't exist just define a no-op decorator that does nothing (after the other aiohttp imports though!). By doing this, it's safe to ignore the DeprecationWarning without needing to require the latest aiohttp once they remove `@middleware`. ---