Build error with Python 2.6.
Traceback (most recent call last):
File "./nir/nir_opt_algebraic.py", line 726, in <module>
for left, right in itertools.combinations_with_replacement(invert.keys(), 2):
AttributeError: 'module' object has no attribute 'combinations_with_replacement'
Author: Mathieu Bridon <email@example.com>
Date: Thu Aug 9 10:27:19 2018 +0200
python: Use the right function for the job
The code was just reimplementing itertools.combinations_with_replacement
in a less efficient way.
This does change the order of the results slightly, but it should be ok.
Signed-off-by: Mathieu Bridon <firstname.lastname@example.org>
Reviewed-by: Dylan Baker <email@example.com>
Python 2.6 is unsupported and has been for some time. The EOL was in 2013. We will continue to support python 2.7 for the forseeable future, please update to 2.7.