Deprecation warning - alternative #3615

Merged
Stonedestroyer merged 8 commits from dep-alt into V3/develop 2020-02-28 02:22:51 +01:00
Stonedestroyer commented 2020-02-26 11:41:10 +01:00 (Migrated from github.com)

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.

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.
tekulvw (Migrated from github.com) reviewed 2020-02-26 11:41:10 +01:00
Stonedestroyer commented 2020-02-26 11:46:35 +01:00 (Migrated from github.com)

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

Updated to now also print warnings for both but hides the known ones for non-debug.
Jackenmen (Migrated from github.com) requested changes 2020-02-26 16:06:54 +01:00
Jackenmen (Migrated from github.com) left a comment

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.
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. ```
@ -198,3 +198,26 @@ version_info = VersionInfo.from_str(__version__)
_warnings.filterwarnings("ignore", module=r"fuzzywuzzy.*")
Jackenmen (Migrated from github.com) commented 2020-02-26 14:01:47 +01:00

This line is unnecessary

This line is unnecessary
Jackenmen (Migrated from github.com) commented 2020-02-26 14:52:32 +01:00

Could you add link to related issue for these 2 warnings?
https://github.com/aio-libs/aiohttp/pull/4570

Could you add link to related issue for these 2 warnings? https://github.com/aio-libs/aiohttp/pull/4570
Jackenmen (Migrated from github.com) commented 2020-02-26 14:52:51 +01:00

Could you also add comment that this warning is caused by d.py? Something like

# discord.py is using deprecated kwarg name when making websockets connection
# https://github.com/Rapptz/discord.py/issues/2574

should suffice.

Could you also add comment that this warning is caused by d.py? Something like ``` # discord.py is using deprecated kwarg name when making websockets connection # https://github.com/Rapptz/discord.py/issues/2574 ``` should suffice.
Stonedestroyer commented 2020-02-26 16:18:06 +01:00 (Migrated from github.com)

I have also updated https://github.com/Cog-Creators/Red-DiscordBot/issues/3529 to make it easier to track these changes.

I have also updated https://github.com/Cog-Creators/Red-DiscordBot/issues/3529 to make it easier to track these changes.
Stonedestroyer commented 2020-02-26 16:19:43 +01:00 (Migrated from github.com)

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

@jack1142 I can remove the error messages and put a clearer error message if you want to reduce the clutter.
Jackenmen (Migrated from github.com) approved these changes 2020-02-28 02:22:37 +01:00
Jackenmen (Migrated from github.com) left a comment

LGTM

LGTM
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!3615
No description provided.