Skip to content

Commit

Permalink
Correct use of obj_type argument in cbook.warn_deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ianthomas23 committed Sep 4, 2013
1 parent 20ca818 commit ec486d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/cbook.py
Expand Up @@ -117,7 +117,7 @@ def new_function():
The object type being deprecated.
"""
message = _generate_deprecation_message(
since, message, name, alternative, pending, 'function')
since, message, name, alternative, pending, obj_type)

warnings.warn(message, mplDeprecation, stacklevel=1)

Expand Down

0 comments on commit ec486d7

Please sign in to comment.