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

klass kwarg has been renamed to create_protocol and the old one is deprecated #2574

Closed
3 tasks done
Jackenmen opened this issue Feb 23, 2020 · 1 comment
Closed
3 tasks done
Labels
stale This issue is too old.

Comments

@Jackenmen
Copy link
Contributor

Summary

Reproduction Steps

Code:

import warnings

import discord

warnings.filterwarnings("default", category=DeprecationWarning)

bot = discord.Client()


if __name__ == "__main__":
    TOKEN = ...
    bot.run(TOKEN)

Expected Results

No deprecation warnings.

Actual Results

I got a deprecation warning:

C:\Python38\lib\site-packages\websockets\client.py:407: DeprecationWarning: rename klass to create_protocol
  warnings.warn("rename klass to create_protocol", DeprecationWarning)

I didn't see any issue made for this so thought I will at least share it here.

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

System Information

- Python v3.8.1-final
- discord.py v1.3.2-final
- aiohttp v3.6.2
- websockets v8.1
- system info: Windows 10 10.0.18362
@Harmon758
Copy link
Contributor

This should no longer be an issue, as #2654 dropped websockets in favor of aiohttp and was released in v1.4.0.

@dpy-manager-bot dpy-manager-bot added the stale This issue is too old. label Nov 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale This issue is too old.
Projects
None yet
Development

No branches or pull requests

3 participants