From: Shivani Tipnis Date: Thu, 11 Oct 2018 06:19:32 +0000 (+0530) Subject: nvs_util: Add Python2 and Python3 compatible X-Git-Tag: v3.2-beta1~49^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1460f03065e1496fdb3661d9c4bfd386afd1bea6;p=esp-idf nvs_util: Add Python2 and Python3 compatible --- diff --git a/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py b/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py index 2b11877ca7..2330c6102b 100755 --- a/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py +++ b/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py @@ -17,8 +17,11 @@ # See the License for the specific language governing permissions and # limitations under the License. # -from __future__ import division -from __future__ import print_function + +from __future__ import division, print_function #, unicode_literals +from future.utils import raise_ +from builtins import int, range +from io import open import sys import argparse import binascii @@ -80,7 +83,7 @@ class Page(object): global page_header # set page state to active - page_header= bytearray(b'\xff')*32 + page_header= bytearray(b'\xff') *32 page_state_active_seq = Page.ACTIVE struct.pack_into('