Skip to content

Commit d309aae

Browse files
committed
fix code style
1 parent 72a6ed8 commit d309aae

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

asv_bench/benchmarks/io/csv.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class ReadCSVParseSpecialDate(StringIORewind):
237237
params = (['mY', 'mdY'],)
238238
params_name = ['value']
239239
objects = {
240-
'mY': '01-2019\n10-2019\n02/2000\n',
240+
'mY': '01-2019\n10-2019\n02/2000\n',
241241
'mdY': '12/02/2010\n'
242242
}
243243

pandas/_libs/tslibs/parsing.pyx

+4-5
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,11 @@ cdef inline object parse_delimited_date(object date_string, bint dayfirst,
112112
and (month <= MAX_MONTH or day <= MAX_MONTH):
113113
if month > MAX_MONTH or (day < MAX_MONTH and dayfirst):
114114
day, month = month, day
115-
return PyDateTimeAPI.DateTime_FromDateAndTime(year, month, day,
116-
0, 0, 0, 0, tzinfo, PyDateTimeAPI.DateTimeType), reso
117-
118-
raise DateParseError("Invalid date specified (%d/%d)" %
119-
(month, day))
115+
return PyDateTimeAPI.DateTime_FromDateAndTime(
116+
year, month, day, 0, 0, 0, 0, tzinfo, PyDateTimeAPI.DateTimeType
117+
), reso
120118

119+
raise DateParseError("Invalid date specified (%d/%d)" % (month, day))
121120

122121

123122
def parse_datetime_string(date_string, freq=None, dayfirst=False,

0 commit comments

Comments
 (0)