1. Christian Heimes
  2. defusedexpat

Commits

Christian Heimes  committed 61d8d96

compatibility with Python 2.6.6

  • Participants
  • Parent commits 12db9d0
  • Branches default

Comments (0)

Files changed (1)

File Modules26/pyexpat.c

View file
  • Ignore whitespace
     else {
         self->itself = XML_ParserCreate(encoding);
     }
+#if PY_VERSION_HEX >= 0x02060800
+    /* 2.6.6 is the latest Windows binary release */
     XML_SetHashSalt(self->itself,
                     (unsigned long)_Py_HashSecret.prefix);
+#endif
     self->intern = intern;
     Py_XINCREF(self->intern);
 #ifdef Py_TPFLAGS_HAVE_GC