Karthikeyan Singaravelan

Results 222 issues of Karthikeyan Singaravelan

## Bug Report **Describe the bug** Several gettext related functions that are from Python 2 were deprecated in Python 3.8 and were set for removal in Python 3.10 . But...

``` ./extra/update_comments_from_spec.py:13: DeprecationWarning: invalid escape sequence \s '(?Pdef\s+(?P[a-zA-Z0-9_]+)\(.*?\)' ./extra/update_comments_from_spec.py:14: DeprecationWarning: invalid escape sequence \s ':\n+\s+""")(?P.*?)(?=""")', ./extra/update_comments_from_spec.py:52: DeprecationWarning: invalid escape sequence \s regex = ('(?Pdef\s+' + ./extra/update_comments_from_spec.py:54: DeprecationWarning: invalid escape sequence...

Import ABC from `collections` was deprecated and removed in Python 3.10. Use `collections.abc` .

https://github.com/ask/mode/blob/56216a2bdd949197a3e130fb47ebfbb1306da148/mode/threads.py#L331 ``` /root/py39-venv/lib/python3.9/site-packages/mode/threads.py:331: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10. self._queue = asyncio.Queue(loop=self.loop) ```

Import ABC from collections.abc for Python 3.10 compatibility . This makes the code consistent with other places that use `collections.abc`.

CLA Signed

The deprecated aliases have been removed in python/cpython#28268

`@asyncio.coroutine` was deprecated in Python 3.8 with https://github.com/python/cpython/pull/13346. loop argument is also deprecated. I am not sure `async def` can be used since the project ensures compatiblity with 3.3 and...

This was from https://github.com/apache/airflow/issues/23333 where trying to load a template that doesn't exist in the searchpath raises `TemplateNotFound` exception. In this case an absolute path is used which causes issue...

``` gin/config.py 1859: if isinstance(value, collections.Mapping): 1860: value = collections.ValuesView(value) 1862: if isinstance(value, collections.Iterable): ```