parameters: (self, orig)
return_statement: return sub
docstring: Changes a MS smart quote character to an XML or HTML
          entity.
docstring_summary: Changes a MS smart quote character to an XML or HTML
          entity.
docstring_tokens: Changes a MS smart quote character to an XML or HTML entity .
function: 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
function_tokens: 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