Parcourir la source

[1866] added one special RRclass constant by hand: NONE

JINMEI Tatuya il y a 12 ans
Parent
commit
1ec1ffb481
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/lib/dns/python/pydnspp.cc

+ 4 - 0
src/lib/dns/python/pydnspp.cc

@@ -435,6 +435,10 @@ initModulePart_RRClass(PyObject* mod) {
 
         // Incorporate auto-generated RRClass constants
 #include <dns/python/rrclass_constants_inc.cc>
+
+        // We still need to define some special classes by hand (for now)
+        installClassVariable(rrclass_type, "NONE",
+                             createRRClassObject(RRClass::NONE()));
     } catch (const std::exception& ex) {
         const std::string ex_what =
             "Unexpected failure in RRClass initialization: " +