(value)
| 1272 | format_ = self._storage_format |
| 1273 | |
| 1274 | def process(value): |
| 1275 | if value is None: |
| 1276 | return None |
| 1277 | elif isinstance(value, datetime_date): |
| 1278 | return format_ % { |
| 1279 | "year": value.year, |
| 1280 | "month": value.month, |
| 1281 | "day": value.day, |
| 1282 | } |
| 1283 | else: |
| 1284 | raise TypeError( |
| 1285 | "SQLite Date type only accepts Python " |
| 1286 | "date objects as input." |
| 1287 | ) |
| 1288 | |
| 1289 | return process |
| 1290 |
no outgoing calls
no test coverage detected