code: def formatter(self, value):
          '''
          Format a enumerate value to enumerate names if possible. Used to generate human readable
          dump result.
          '''
          if not self._bitwise:
              n = self.getName(value)
              if n is None:
                  return value
              else:
                  return n
          else:
              names = []
              for k,v in sorted(self._values.items(), key=lambda x: x[1], reverse=True):
                  if (v & value) == v:
                      names.append(k)
                      value = value ^ v
              names.reverse()
              if value != 0:
                  names.append(hex(value))
              if not names:
                  return 0 
              return ' '.join(namesf formatter(self, value):
          '''
          Format a enumerate value to enumerate names if possible. Used to generate human readable
          dump result.
          '''
          if not self._bitwise:
              n = self.getName(value)
              if n is None:
                  return value
              else:
                  return n
          else:
              names = []
              for k,v in sorted(self._values.items(), key=lambda x: x[1], reverse=True):
                  if (v & value) == v:
                      names.append(k)
                      value = value ^ v
              names.reverse()
              if value != 0:
                  names.append(hex(value))
              if not names:
                  return 0 
              return ' '.join(names)
docs: Format a enumerate value to enumerate names if possible. Used to generate human readable
          dump result.