File: year0.patch

package info (click to toggle)
python-ciso8601 2.3.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 372 kB
  • sloc: python: 1,294; ansic: 939; sh: 22; makefile: 7
file content (11 lines) | stat: -rw-r--r-- 324 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
--- a/module.c
+++ b/module.c
@@ -209,7 +209,7 @@
     /* Year */
     PARSE_INTEGER(year, 4, "year")
 
-#if !PY_VERSION_AT_LEAST_36
+#if 1
     /* Python 3.6+ does this validation as part of datetime's C API
      * constructor. See
      * https://github.com/python/cpython/commit/b67f0967386a9c9041166d2bbe0a421bd81e10bc