Skip to content

Commit

Permalink
Revert the change that is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasreddy committed Dec 9, 2024
1 parent ad96b89 commit 95744bd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Objects/bytesobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -2526,11 +2526,13 @@ _PyBytes_FromHex(PyObject *string, int use_bytearray)
end = str + hexlen;
while (str < end) {
/* skip over spaces in the input */
while (str < end && Py_ISSPACE(*str)) {
str++;
if (Py_ISSPACE(*str)) {
do {
str++;
} while (Py_ISSPACE(*str));
if (str >= end)
break;
}
if (str >= end)
break;

/* Check first hex digit */
top = _PyLong_DigitValue[*str];
Expand Down

0 comments on commit 95744bd

Please sign in to comment.