Skip to content

Commit 583809c

Browse files
committed
Remove dead code
1 parent d1caff7 commit 583809c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎Objects/bytesobject.c‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2706,11 +2706,7 @@ _PyBytes_FromHex(PyObject *string, int use_bytearray)
27062706
bot = _PyLong_DigitValue[*str];
27072707
if (bot >= 16) {
27082708
/* Check if we had a second digit */
2709-
if (str >= end){
2710-
invalid_char = -1;
2711-
} else {
2712-
invalid_char = str - start;
2713-
}
2709+
invalid_char = str - start;
27142710
goto error;
27152711
}
27162712
str++;

0 commit comments

Comments
 (0)