Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
put 2 blank lines before sections
  • Loading branch information
picnixz committed Jan 3, 2025
commit 17367ff6784c5b5dc82171ce7f0d612d31516488
9 changes: 9 additions & 0 deletions Objects/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -2701,6 +2701,7 @@ as_unicode_error_attribute(PyObject *attr, const char *name, int as_bytes)
#define PyUnicodeError_CAST(PTR) \
(assert(PyUnicodeError_Check(PTR)), ((PyUnicodeErrorObject *)(PTR)))


/* class names to use when reporting errors */
#define Py_UNICODE_ENCODE_ERROR_NAME "UnicodeEncodeError"
#define Py_UNICODE_DECODE_ERROR_NAME "UnicodeDecodeError"
Expand Down Expand Up @@ -2920,6 +2921,7 @@ _PyUnicodeError_GetParams(PyObject *self,
return 0;
}


// --- PyUnicodeEncodeObject: 'encoding' getters ------------------------------
// Note: PyUnicodeTranslateError does not have an 'encoding' attribute.

Expand All @@ -2938,6 +2940,7 @@ PyUnicodeDecodeError_GetEncoding(PyObject *self)
return rc < 0 ? NULL : unicode_error_get_encoding_impl(self);
}


// --- PyUnicodeEncodeObject: 'object' getters --------------------------------

PyObject *
Expand All @@ -2963,6 +2966,7 @@ PyUnicodeTranslateError_GetObject(PyObject *self)
return rc < 0 ? NULL : unicode_error_get_object_impl(self, false);
}


// --- PyUnicodeEncodeObject: 'start' getters ---------------------------------

/*
Expand Down Expand Up @@ -3001,6 +3005,7 @@ PyUnicodeTranslateError_GetStart(PyObject *self, Py_ssize_t *start)
return rc < 0 ? -1 : unicode_error_get_start_impl(self, start, false);
}


// --- PyUnicodeEncodeObject: 'start' setters ---------------------------------

int
Expand All @@ -3026,6 +3031,7 @@ PyUnicodeTranslateError_SetStart(PyObject *self, Py_ssize_t start)
return rc < 0 ? -1 : unicode_error_set_start_impl(self, start);
}


// --- PyUnicodeEncodeObject: 'end' getters -----------------------------------

/*
Expand Down Expand Up @@ -3064,6 +3070,7 @@ PyUnicodeTranslateError_GetEnd(PyObject *self, Py_ssize_t *end)
return rc < 0 ? -1 : unicode_error_get_end_impl(self, end, false);
}


// --- PyUnicodeEncodeObject: 'end' setters -----------------------------------

int
Expand All @@ -3089,6 +3096,7 @@ PyUnicodeTranslateError_SetEnd(PyObject *self, Py_ssize_t end)
return rc < 0 ? -1 : unicode_error_set_end_impl(self, end);
}


// --- PyUnicodeEncodeObject: 'reason' getters --------------------------------

PyObject *
Expand All @@ -3114,6 +3122,7 @@ PyUnicodeTranslateError_GetReason(PyObject *self)
return rc < 0 ? NULL : unicode_error_get_reason_impl(self);
}


// --- PyUnicodeEncodeObject: 'reason' setters --------------------------------

int
Expand Down