Skip to content

Commit c70564f

Browse files
committed
Remove unnecessary if statement
1 parent 77a8e4a commit c70564f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MySQLdb/times.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def DateTime_or_None(s):
5757
if len(micros) == 0:
5858
# 12:00:00
5959
micros = 0
60-
elif len(micros) > 0 and len(micros) < 7:
60+
elif len(micros) < 7:
6161
# 12:00:00.123456
6262
micros = int(micros) * 10 ** (6 - len(micros))
6363
else:

0 commit comments

Comments
 (0)