Commits

Christian Heimes  committed 370fa7a

Windows doesn't have ENOTSUP

  • Participants
  • Parent commits 5786f3c

Comments (0)

Files changed (3)

 
 *Release date: ??-Feb-2013*
 
-- Proxy trick doesn't work on Windows
+- Disable some tests on Windows because proxy trick doesn't work
 - Remove 'bomb protection' suffix from CAPI MAGIC
 - Don't support additional kwargs in _elementtree when XML_BOMB_PROTECTION
   is not available.
+- implement better and more flexibel get/set feature API in expat
 
 
 defusedexpat 0.2

File expat/expat.h

    Otherwise, 0 shall be returned and errno set to indicate an error. The
    value shall not be modified if a function signals an error.
 
-   ENOTSUP feature is not supported
+   ENOENT feature is not supported
    EINVAL  value is invalid and outside the allowed range
 
    As of now three features are supported:

File expat/xmlparse.c

         *value = (long)resetDTDFlag;
         return 1;
     default:
-        errno = ENOTSUP;
+        errno = ENOENT;
         return 0;
     }
 }
             return 0;
         }
     default:
-        errno = ENOTSUP;
+        errno = ENOENT;
         return 0;
     }
 }
         *value = (long)defaultResetDTDFlag;
         return 1;
     default:
-        errno = ENOTSUP;
+        errno = ENOENT;
         return 0;
     }
 }
             return 0;
         }
     default:
-        errno = ENOTSUP;
+        errno = ENOENT;
         return 0;
     }
 }