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