From 931a3936ecf30348013e0e3dd14cce02eb0c0beb Mon Sep 17 00:00:00 2001 From: Jamie Madill Date: Wed, 8 Nov 2017 13:40:09 -0500 Subject: layers: Make generator helpers Python 2 compatible. This is an easy compatiblity change, which uses a workaround to import a version of 'open' that can support unicode across Python versions. Affects the object tracker and parameter validation generators. Change-Id: Ie958dc64168db9e06b36321b4b6ad2336f995ea3 --- scripts/parameter_validation_generator.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts/parameter_validation_generator.py') diff --git a/scripts/parameter_validation_generator.py b/scripts/parameter_validation_generator.py index 85078a65..01ed1bbf 100644 --- a/scripts/parameter_validation_generator.py +++ b/scripts/parameter_validation_generator.py @@ -26,6 +26,8 @@ from generator import * from collections import namedtuple from vuid_mapping import * +# This is a workaround to use a Python 2.7 and 3.x compatible syntax. +from io import open # ParameterValidationGeneratorOptions - subclass of GeneratorOptions. # -- cgit v1.2.3