(self, orig)
return sub
Changes a MS smart quote character to an XML or HTML
        entity.
Changes a MS smart quote character to an XML or HTML
        entity.
Changes a MS smart quote character to an XML or HTML entity .
def _subMSChar(self, orig):
        """Changes a MS smart quote character to an XML or HTML
        entity."""
        sub = self.MS_CHARS.get(orig)
        if isinstance(sub, tuple):
            if self.smartQuotesTo == 'xml':
                sub = '&#x%s;' % sub[1]
            else:
                sub = '&%s;' % sub[0]
        return sub
def _subMSChar ( self , orig ) : sub = self . MS_CHARS . get ( orig ) if isinstance ( sub , tuple ) : if self . smartQuotesTo == 'xml' : sub = '&#x%s;' % sub [ 1 ] else : sub = '&%s;' % sub [ 0 ] return sub