def educateBackticks(text, language='en'):
 smart = smartchars(language)
 text = re.sub('``', smart.opquote, text)
 text = re.sub("''", smart.cpquote, text)
 return text

def educateBackticks ( text , language = 'en' ) : smart = smartchars ( language ) text = re . sub ( '``' , smart . opquote , text ) text = re . sub ( "''" , smart . cpquote , text ) return text
parameter: string .