Karthikeyan Singaravelan

Results 222 issues of Karthikeyan Singaravelan

*Description of changes:* Import ABC from `collections.abc` for Python 3.10 compatibility. Importing from `collections` was deprecated and removed.

Timer inherits from threading.Thread . Ref : python/cpython#25174 https://github.com/cmanaha/python-elasticsearch-logger/blob/27ee809b4eba309d198a8909d9c559754e257197/cmreslogging/handlers.py#L208 ``` /root/checked_repos/python-elasticsearch-logger/cmreslogging/handlers.py:208: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead self._timer.setDaemon(True) ```

Depreaction warning due to invalid escape sequences in Python 3.7 . https://github.com/asottile/pyupgrade/ can be used to resolve the warnings. ``` find . -iname '*py' | grep -Ev 'setup|rdf4' | xargs...

The deprecated unittest aliases were removed in https://github.com/python/cpython/pull/28268 . The PR is backwards compatible with Python 2.7 .

``` find . -iname '*.py' | grep -Ev 'vendor|example|doc|tools|sphinx' | xargs -P4 -I{} python3.8 -Wall -m py_compile {} ./keras_resnet/benchmarks/__init__.py:74: SyntaxWarning: "is" with a literal. Did you mean "=="? if benchmark...

``` find . -iname '*.py' | grep -v example | xargs -P4 -I{} python3.8 -Wall -m py_compile {} ./tests/tests.py:266: SyntaxWarning: "is" with a literal. Did you mean "=="? self.jpg.optional_image.field.storage.size( ```

* Fix deprecation warning due to invalid escape sequences. * Fix syntax warning over comparison of literals using is. Fixes #144

* Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. pyupgrade also helps in automatic conversion : https://github.com/asottile/pyupgrade/...