Skip to content
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

Deprecation warning - alternative #3615

Merged
merged 8 commits into from
Feb 28, 2020
Merged

Deprecation warning - alternative #3615

merged 8 commits into from
Feb 28, 2020

Conversation

Stonedestroyer
Copy link
Contributor

@Stonedestroyer Stonedestroyer commented Feb 26, 2020

Alternative to #3613

Hides the known ones for non-debug and shows all for debug.

I did line number variant but could also do regex but I think line number may be better in this case incase there is two errors with same error but different linenumber. This could also be checked easily if it's fixed by debug.

@Stonedestroyer
Copy link
Contributor Author

Updated to now also print warnings for both but hides the known ones for non-debug.

Copy link
Member

@Jackenmen Jackenmen left a comment

Choose a reason for hiding this comment

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

Few things that should be changed if we choose to handle #3612 in this way.

Also, this seems to missing one of the warnings mentioned in #3529?

<frozen importlib._bootstrap>:219: DeprecationWarning: an integer is required (got type float).  Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.

redbot/__init__.py Outdated Show resolved Hide resolved
redbot/__init__.py Outdated Show resolved Hide resolved
redbot/__init__.py Outdated Show resolved Hide resolved
@Jackenmen Jackenmen self-assigned this Feb 26, 2020
@Jackenmen Jackenmen added the Status: Needs Discussion Needs more discussion. label Feb 26, 2020
@Stonedestroyer
Copy link
Contributor Author

I have also updated #3529 to make it easier to track these changes.

@Stonedestroyer
Copy link
Contributor Author

@jack1142 I can remove the error messages and put a clearer error message if you want to reduce the clutter.

@Jackenmen Jackenmen linked an issue Feb 26, 2020 that may be closed by this pull request
@Jackenmen Jackenmen added Blocked Category: Bot Core Type: Enhancement Something meant to enhance existing Red features. and removed Blocked Status: Needs Discussion Needs more discussion. labels Feb 27, 2020
@Jackenmen Jackenmen added this to the 3.4.0 milestone Feb 28, 2020
Copy link
Member

@Jackenmen Jackenmen left a comment

Choose a reason for hiding this comment

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

LGTM

@Kowlin Kowlin merged commit ad4a75b into Cog-Creators:V3/develop Feb 28, 2020
@Stonedestroyer Stonedestroyer deleted the dep-alt branch February 28, 2020 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Something meant to enhance existing Red features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop showing DeprecationWarnings from all modules by default
3 participants