Convert the old cnfvar module into a cnfvar string parsing module
[pyi2ncommon] / src / cnfvar / model.py
index 768cfa2..83bea0a 100644 (file)
@@ -35,7 +35,8 @@ extend them with extra functionality.
 
 import json
 
-from .. import cnfvar_old, arnied_api
+from . import string
+from .. import arnied_api
 
 #: value used to detect unspecified arguments
 DEFAULT = object()
@@ -590,7 +591,7 @@ class CnfListSerializationMixin(BaseCnfList):
         :returns: a list of cnfvars
         :rtype: :py:class:`CnfList`
         """
-        cnf_obj = cnfvar_old.read_cnf(data)
+        cnf_obj = string.read_cnf(data)
         return CnfList.from_cnf_structure(cnf_obj)
 
     @classmethod