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
Some minor PEP 7 fixes
  • Loading branch information
StanFromIreland committed Jun 30, 2026
commit 4dc17e25bf1d6cd293e6689599a13df99be463d8
8 changes: 5 additions & 3 deletions Modules/_datetimemodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ parse_hh_mm_ss_ff(const char *tstr, const char *tstr_end, int *hour,

if (c == '.' || c == ',') {
if (i < 2) {
return -3; // Decimal mark on hour or minute
return -3; // Decimal mark on hour or minute
}
if (p >= p_end) {
return -3; // Decimal mark not followed by any digit
Expand All @@ -1051,9 +1051,11 @@ parse_hh_mm_ss_ff(const char *tstr, const char *tstr_end, int *hour,
return -4; // Malformed microsecond separator
}
continue;
} else if (!has_separator) {
}
else if (!has_separator) {
--p;
} else {
}
else {
return -4; // Malformed time separator
}
}
Expand Down
Loading