Conditions | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
1 | # -*- coding: utf-8 -*- |
||
21 | 1 | def clean(self): |
|
22 | """ |
||
23 | Redefines base method. See :meth:`SectionParser.clean` for |
||
24 | semantics. |
||
25 | |||
26 | Combines day, time and year into :class:`datetime.date` object. |
||
27 | """ |
||
28 | 1 | date = datetime.date(int(self.data['Year']), |
|
29 | int(self.data['Month']), |
||
30 | int(self.data['Day'])) |
||
31 | return {'date': date, } |
||
32 |