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

allow specifying custom warning classes #7

Merged
merged 2 commits into from
Nov 15, 2016

Conversation

mmerickel
Copy link
Contributor

@mmerickel mmerickel commented Nov 15, 2016

I'd like to support custom warning classes.

class DeprecatedInVersion17Warning(DeprecationWarning):
    pass

class Foo(object):
    pass

zope.deprecation.deprecated(
    'Foo', 'This object was deprecated in version 1.7.',
    DeprecatedInVersion17Warning)

@tseaver tseaver merged commit 4758439 into zopefoundation:master Nov 15, 2016
@tseaver
Copy link
Member

tseaver commented Nov 15, 2016

@mmerickel Nice work!

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