diff --git a/pyangbind/helpers/misc.py b/pyangbind/helpers/misc.py index f5f41a4..c4d2619 100644 --- a/pyangbind/helpers/misc.py +++ b/pyangbind/helpers/misc.py @@ -16,6 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. """ + import sys diff --git a/pyangbind/lib/pybindJSON.py b/pyangbind/lib/pybindJSON.py index 24e9825..8ec9493 100644 --- a/pyangbind/lib/pybindJSON.py +++ b/pyangbind/lib/pybindJSON.py @@ -17,6 +17,7 @@ See the License for the specific language governing permissions and limitations under the License. """ + from __future__ import unicode_literals import copy diff --git a/pyangbind/lib/serialise.py b/pyangbind/lib/serialise.py index 7d5b479..b129afc 100644 --- a/pyangbind/lib/serialise.py +++ b/pyangbind/lib/serialise.py @@ -23,6 +23,7 @@ * module containing methods to serialise pyangbind class hierarchie to various data encodings. XML and/or JSON as the primary examples. """ + from __future__ import unicode_literals import json diff --git a/pyangbind/lib/xpathhelper.py b/pyangbind/lib/xpathhelper.py index e639310..7ca0a74 100644 --- a/pyangbind/lib/xpathhelper.py +++ b/pyangbind/lib/xpathhelper.py @@ -23,6 +23,7 @@ This module maintains an XML ElementTree for the registered Python classes, so that XPATH can be used to lookup particular items. """ + from __future__ import unicode_literals import uuid diff --git a/pyangbind/lib/yangtypes.py b/pyangbind/lib/yangtypes.py index 33bd2f9..86e2e7e 100644 --- a/pyangbind/lib/yangtypes.py +++ b/pyangbind/lib/yangtypes.py @@ -19,6 +19,7 @@ See the License for the specific language governing permissions and limitations under the License. """ + from __future__ import unicode_literals import base64 diff --git a/pyangbind/plugin/pybind.py b/pyangbind/plugin/pybind.py index d630121..6fc1047 100644 --- a/pyangbind/plugin/pybind.py +++ b/pyangbind/plugin/pybind.py @@ -20,6 +20,7 @@ See the License for the specific language governing permissions and limitations under the License. """ + from __future__ import unicode_literals import copy @@ -1153,9 +1154,11 @@ def _set_%s(self, v, load=False): % ( i["name"], i["origtype"], - "%s:%s" % (i["defining_module"], i["origtype"]) - if ":" not in i["origtype"] and not i["origtype"] in YANG_BUILTIN_TYPES - else i["origtype"], + ( + "%s:%s" % (i["defining_module"], i["origtype"]) + if ":" not in i["origtype"] and not i["origtype"] in YANG_BUILTIN_TYPES + else i["origtype"] + ), c_str["type"], c_str["arg"], )