Skip to content

Commit

Permalink
Merge branch 'pr/193': Fix warn_deprecation
Browse files Browse the repository at this point in the history
Fixes a simple issue whereby the wrong thing was being used in the
string interpolation
  • Loading branch information
digitalresistor committed Apr 13, 2015
2 parents 759cc3f + f03169c commit 8de959f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webob/descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def deprecated_property(attr, name, text, version): # pragma: no cover
"""
def warn():
warn_deprecation('The attribute %s is deprecated: %s'
% (attr, text),
% (name, text),
version,
3
)
Expand All @@ -122,7 +122,7 @@ def fdel(self):
warn()
attr.__delete__(self)
return property(fget, fset, fdel,
'<Deprecated attribute %s>' % attr
'<Deprecated attribute %s>' % name
)


Expand Down

0 comments on commit 8de959f

Please sign in to comment.