def renderOpenTag(self, tag, out):
        if callable(self.nodeName):
            nodeName = self.nodeName(self, tag)
        else:
            nodeName = self.nodeName
            
        out.write("<%s" % nodeName)
            
        attributes = self.translateAttributes(tag)
        if attributes:
            for name in attributes:
                value = attributes[name]
                if not callable(value):
                    out.write(' %s="%s"' % (name, escapeHTMLText(value)))

        out.write(">")
dataset/ETHPy150Open joehewitt/devon/devon/renderers/html.py/HTMLElement.renderOpenTag/original