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

DeprecationWarning The 'warn' method #125

Closed
KKomarov opened this issue Jun 11, 2019 · 4 comments
Closed

DeprecationWarning The 'warn' method #125

KKomarov opened this issue Jun 11, 2019 · 4 comments

Comments

@KKomarov
Copy link

6.9.1 version, I got deprecation warning about warn. Can you fix these annoying messages?

C:\Python37\lib\site-packages\ldclient\client.py:287: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
    + str(default) + " for feature key: " + key)
@eli-darkly
Copy link
Contributor

Looks like warn and warning work identically in 2.7 (our lowest compatible version) but warn started causing a deprecation warning in some later Python version. Should be an easy fix - thanks for catching this.

@eli-darkly
Copy link
Contributor

OK, the 6.9.3 release includes a fix for this. Thanks again.

@eli-darkly
Copy link
Contributor

Note that if you were previously using 6.9.1, the package name has changed. You will need to change ldclient-py to launchdarkly-server-sdk in your requirements, and uninstall any copies of ldclient-py that you currently have.

@KKomarov
Copy link
Author

@eli-darkly Thank you for the notification

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

No branches or pull requests

2 participants