-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix warnings #810
Fix warnings #810
Conversation
Codecov Report
@@ Coverage Diff @@
## master #810 +/- ##
==========================================
- Coverage 97.89% 97.87% -0.02%
==========================================
Files 31 31
Lines 5358 5365 +7
==========================================
+ Hits 5245 5251 +6
- Misses 113 114 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
This pull request fixes 4 alerts when merging 451d045 into dc53097 - view on LGTM.com fixed alerts:
|
await self._do_sasl_handshake() | ||
if self._security_protocol in ["SASL_SSL", "SASL_PLAINTEXT"]: | ||
await self._do_sasl_handshake() | ||
except: # noqa: E722 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change this to except Exception
, I would prefer not to have an implicit catch on BaseException if there is no need for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do need to catch BaseException. Actually I stepped into the problem with CancelledError, which nowadays doesn't inherit from Exception.
aio-libs#810 imports errors from `setuptools` instead of `distutils` This is available only starting from `setuptools` v59.0.0 (pypa/setuptools#2858) but RTD currently defaults to v58.2.0 (https://docs.readthedocs.io/en/stable/builds.html#python)
aio-libs#810 imports errors from `setuptools` instead of `distutils` This is available only starting from `setuptools` v59.0.0 (pypa/setuptools#2858) but RTD currently defaults to v58.2.0 (https://docs.readthedocs.io/en/stable/builds.html#python)
aio-libs#810 imports errors from `setuptools` instead of `distutils` This is available only starting from `setuptools` v59.0.0 (pypa/setuptools#2858) but RTD currently defaults to v58.2.0 (https://docs.readthedocs.io/en/stable/builds.html#python)
aio-libs#810 imports errors from `setuptools` instead of `distutils` This is available only starting from `setuptools` v59.0.0 (pypa/setuptools#2858) but RTD currently defaults to v58.2.0 (https://docs.readthedocs.io/en/stable/builds.html#python)
aio-libs#810 imports errors from `setuptools` instead of `distutils` This is available only starting from `setuptools` v59.0.0 (pypa/setuptools#2858) but RTD currently defaults to v58.2.0 (https://docs.readthedocs.io/en/stable/builds.html#python)
aio-libs#810 imports errors from `setuptools` instead of `distutils` This is available only starting from `setuptools` v59.0.0 (pypa/setuptools#2858) but RTD currently defaults to v58.2.0 (https://docs.readthedocs.io/en/stable/builds.html#python)
* Fix doc building #804 removed the `aiokafka.protocol.produce` stubs imported from `kafka-python`, this caused the documentation to fail to build. * Fix RTD doc compilation #810 imports errors from `setuptools` instead of `distutils` This is available only starting from `setuptools` v59.0.0 (pypa/setuptools#2858) but RTD currently defaults to v58.2.0 (https://docs.readthedocs.io/en/stable/builds.html#python)
Changes
Fixe various warnings (ResourceWarning, DeprecationWarning).
Checklist
CHANGES
folder<issue_id>.<type>
(e.g.588.bugfix
)issue_id
change it to the pr id after creating the PR.feature
: Signifying a new feature..bugfix
: Signifying a bug fix..doc
: Signifying a documentation improvement..removal
: Signifying a deprecation or removal of public API..misc
: A ticket has been closed, but it is not of interest to users.Fix issue with non-ascii contents in doctest text files.