fix renumbering in cnfvar.py
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 5 Dec 2017 10:02:18 +0000 (11:02 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 5 Nov 2018 11:16:39 +0000 (12:16 +0100)
src/cnfvar.py

index 6428141..d62d6cf 100644 (file)
@@ -618,7 +618,7 @@ def output_cnf(root, out, renumber=False, bytes=True):
     # if not isinstance(out, file):
     #     raise TypeError("%s (%s) is not a stream." % (out, type(out)))
     if renumber is True:
-        _count = renumber(root)
+        _count = renumber_vars(root)
     if is_cnf(cnf) is True:
         (_, lines) = functools.reduce(format_cnf_vars, cnf, (0, []))
         if bytes is False: