def render(self, name, value, attrs):
        try:
            from django.forms.utils import flatatt
        except ImportError:
            from django.forms.util import flatatt  # Django < 1.7
        final_attrs = flatatt(self.build_attrs(attrs))

        if not value or not is_password_usable(value):
            summary = ugettext("No password set.")
        else:
            try:
                identify_hasher(value)
            except __HOLE__:
                summary = ugettext("Invalid password format or unknown"
                                   " hashing algorithm.")
            else:
                summary = ugettext('*************')

        return format_html('<div{attrs}><strong>{summary}</strong></div>',
                           attrs=final_attrs, summary=summary)
dataset/ETHPy150Open fusionbox/django-authtools/authtools/forms.py/BetterReadOnlyPasswordHashWidget.render