code: def parse_octal(self, text, i):
          
  
          value = int(text, 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!")
          else:
              single = self.get_single_stack()
              if self.span_stack:
                  text = self.convert_case(chr(value), self.span_stack[-1])
                  value = ord(self.convert_case(text, single)) if single is not None else ord(text)
              elif single:
                  value = ord(self.convert_case(chr(value), single))
              if self.use_format and value in _CURLY_BRACKETS_ORD:
                  self.handle_format(chr(value), i)
              elif value <= 0xFF:
                  self.result.append('\\%03o' % value)
              else:
                  self.result.append(chr(value))
docs: Parse octal value.