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

Projects
None yet
2 participants
@mmerickel
Contributor

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

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
@tseaver

This comment has been minimized.

Show comment
Hide comment
@tseaver

tseaver Nov 15, 2016

Member

@mmerickel Nice work!

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