Commits

Victor Stinner committed be74f44

time.strftime(): replace PyErr_Format() by PyErr_SetString()

The argument was not used in the format string.

  • Participants
  • Parent commits d56eb81
  • Branches 3.2

Comments (0)

Files changed (1)

File Modules/timemodule.c

 
 #if defined(_MSC_VER) || defined(sun)
     if (buf.tm_year + 1900 < 1 || 9999 < buf.tm_year + 1900) {
-        PyErr_Format(PyExc_ValueError,
-                     "strftime() requires year in [1; 9999]",
-                     buf.tm_year + 1900);
+        PyErr_SetString(PyExc_ValueError,
+                        "strftime() requires year in [1; 9999]");
         return NULL;
     }
 #endif