Skip to content

Commit

Permalink
add proper stack level for warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sccolbert committed Oct 30, 2013
1 parent 0667ab9 commit 5e38c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enaml/qt/docking/style_sheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def register_style_sheet(name, sheet):
msg = "Toolkit specific styling for the DockArea is deprecated "
msg += "and will be removed in Enaml version 1.0. Use stylesheets "
msg += "to style the Dock Area instead."
warnings.warn(msg, FutureWarning)
warnings.warn(msg, FutureWarning, stacklevel=2)

assert isinstance(sheet, unicode), 'style sheet must a unicode string'
if name in _style_sheets:
Expand Down

0 comments on commit 5e38c59

Please sign in to comment.