original_docstring: Convert `text` to Traditional characters if `toTraditional` is
          True, else convert to simplified characters
  
          :param text:           data to convert
          :param toTraditional:  True -- convert to traditional text
                                 False -- covert to simplified text
          :returns:              converted 'text`
          
docstring: Convert `text` to Traditional characters if `toTraditional` is
  True, else convert to simplified characters
docstring_tokens: Convert ` text ` to Traditional characters if ` toTraditional ` is True else convert to simplified characters
code: def __convert(cls, text, toTraditional=True):
          """Convert `text` to Traditional characters if `toTraditional` is
          True, else convert to simplified characters
  
          :param text:           data to convert
          :param toTraditional:  True -- convert to traditional text
                                 False -- covert to simplified text
          :returns:              converted 'text`
          """
          if isinstance(text, bytes):
              text = text.decode('utf-8')
  
          fromMap = cls.__simplified_charmap
          toMap = cls.__traditional_charmap
          if not toTraditional:
              fromMap = cls.__traditional_charmap
              toMap = cls.__simplified_charmap
  
          final = []
          for c in text:
              index = fromMap.find(c)
              if index != -1:
                  final.append(toMap[index])
              else:
                  final.append(c)
          return ''.join(final)
code_tokens: def __convert ( cls , text , toTraditional = True ) : if isinstance ( text , bytes ) : text = text . decode ( 'utf-8' ) fromMap = cls . __simplified_charmap toMap = cls . __traditional_charmap if not toTraditional : fromMap = cls . __traditional_charmap toMap = cls . __simplified_charmap final = [ ] for c in text : index = fromMap . find ( c ) if index != - 1 : final . append ( toMap [ index ] ) else : final . append ( c ) return '' . join ( final )
short_docstring: Convert `text` to Traditional characters if `toTraditional` is
  True, else convert to simplified characters
short_docstring_tokens: Convert ` text ` to Traditional characters if ` toTraditional ` is True else convert to simplified characters
comment: """Convert `text` to Traditional characters if `toTraditional` is
          True, else convert to simplified characters
  
          :param text:           data to convert
          :param toTraditional:  True -- convert to traditional text
                                 False -- covert to simplified text
          :returns:              converted 'text`
          """