code: def _regex_flags_from_bits(self, bits):
          
          flags = 'ilmsuxa'
          return ''.join(flags[i - 1] if (1 << i) & bits else '' for i in range(1, len(flags) + 1))
docs: Return the textual equivalent of numerically encoded regex flags.