code: def format_references(self, t, i):
          
  
          octal = self.get_octal(t, i)
          if octal:
              value = int(octal, 8)
              if value > 0xFF and self.is_bytes:
                  # Re fails on octal greater than `0o377` or `0xFF`
                  raise ValueError("octal escape value outside of range 0-0o377!")
              value = chr(value)
          elif t in _STANDARD_ESCAPES or t == '\\':
              value = _BACK_SLASH_TRANSLATION['\\' + t]
          elif not self.is_bytes and t == "U":
              value = chr(int(self.get_wide_unicode(i), 16))
          elif not self.is_bytes and t == "u":
              value = chr(int(self.get_narrow_unicode(i), 16))
          elif not self.is_bytes and t == "N":
              value = _unicodedata.lookup(self.get_named_unicode(i))
          elif t == "x":
              value = chr(int(self.get_byte(i), 16))
          else:
              i.rewind(1)
              value = '\\'
          return value
docs: Handle format references.