Simplified render_attrs a bit, removed last mutant for attrs.py
@@ -32,7 +32,6 @@ def render_attrs(attrs):
"""
Render HTML attributes, or return '' if no attributes needs to be rendered.
"""
- if attrs is not None:
if not attrs:
return ''
@@ -67,7 +66,6 @@ def parts():
yield f'{key}="{v}"'
r = mark_safe(' %s' % ' '.join(parts()))
return '' if r == ' ' else r
- return ''
class Attrs(Namespace):
