Skip to content

Commit 4dc17e2

Browse files
Some minor PEP 7 fixes
1 parent 54ecfa5 commit 4dc17e2

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Modules/_datetimemodule.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ parse_hh_mm_ss_ff(const char *tstr, const char *tstr_end, int *hour,
10361036

10371037
if (c == '.' || c == ',') {
10381038
if (i < 2) {
1039-
return -3; // Decimal mark on hour or minute
1039+
return -3; // Decimal mark on hour or minute
10401040
}
10411041
if (p >= p_end) {
10421042
return -3; // Decimal mark not followed by any digit
@@ -1051,9 +1051,11 @@ parse_hh_mm_ss_ff(const char *tstr, const char *tstr_end, int *hour,
10511051
return -4; // Malformed microsecond separator
10521052
}
10531053
continue;
1054-
} else if (!has_separator) {
1054+
}
1055+
else if (!has_separator) {
10551056
--p;
1056-
} else {
1057+
}
1058+
else {
10571059
return -4; // Malformed time separator
10581060
}
10591061
}

0 commit comments

Comments
 (0)