From 302d339640f06a382ea23b715456af7d08687b3b Mon Sep 17 00:00:00 2001 From: Shivani Tipnis Date: Wed, 3 Oct 2018 17:01:00 +0530 Subject: [PATCH] mfg_gen: Add changes to make Python2 and Python3 compatible --- tools/mass_mfg/mfg_gen.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/mass_mfg/mfg_gen.py b/tools/mass_mfg/mfg_gen.py index c02c0e1566..255aa50b10 100755 --- a/tools/mass_mfg/mfg_gen.py +++ b/tools/mass_mfg/mfg_gen.py @@ -22,10 +22,9 @@ import csv import argparse import shutil import distutils.dir_util +from itertools import zip_longest sys.path.insert(0, os.getenv('IDF_PATH') + "/components/nvs_flash/nvs_partition_generator/") import nvs_partition_gen -if not sys.version_info[0] < 3: - from itertools import zip_longest def verify_values_exist(input_values_file, keys_in_values_file): """ Verify all keys have corresponding values in values file -- 2.40.0