summaryrefslogtreecommitdiff
path: root/bs4/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'bs4/element.py')
-rw-r--r--bs4/element.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/element.py b/bs4/element.py
index 86123f8..74b1dc0 100644
--- a/bs4/element.py
+++ b/bs4/element.py
@@ -1992,7 +1992,7 @@ class Tag(PageElement):
has_key() is gone in Python 3, anyway.
"""
warnings.warn(
- 'has_key is deprecated. Use has_attr("%s") instead.' % key,
+ 'has_key is deprecated. Use has_attr(key) instead.',
DeprecationWarning
)
return self.has_attr(key)