Skip to content

Remove some spurious version checks in logging#3292

Merged
srittau merged 1 commit intomasterfrom
fix-logging
Oct 2, 2019
Merged

Remove some spurious version checks in logging#3292
srittau merged 1 commit intomasterfrom
fix-logging

Conversation

@msullivan
Copy link
Contributor

PR #3269 added some version checks for the argument type to setLevel
and the existence of NullHandler. While these features weren't present
in early versions of Python 3, they are present in Python 2.7, which
leads to false positives.

We could expand the check to include Python 2, but since the affected
Python 3 versions are super old and unsupported, I'm just removing the
checks.

PR #3269 added some version checks for the argument type to setLevel
and the existence of NullHandler. While these features weren't present
in early versions of Python 3, they *are* present in Python 2.7, which
leads to false positives.

We could expand the check to include Python 2, but since the affected
Python 3 versions are super old and unsupported, I'm just removing the
checks.
Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the past we have removed version checks for unsupported Python versions for easier readability of the stubs, so this is consistent with that decision.

@srittau srittau merged commit eeb8daa into master Oct 2, 2019
@srittau srittau deleted the fix-logging branch October 2, 2019 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants