aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/model/mem2raw.py
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2022-01-14 15:02:31 +0100
committerPeter Mikus <pmikus@cisco.com>2022-01-17 11:57:02 +0000
commit5feb31a42f13c2e34df4b76a0b722b3fa7c439e0 (patch)
tree7e36ddec7d8bf7b1b19d344cf2fa22c51c8a872f /resources/libraries/python/model/mem2raw.py
parentcd1f9904e173ecb34836b33cb551ab9b9d378e18 (diff)
fix(uti): Fixing broken code part V
- UTI export breaks local execution - disabling useless tox rules Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I2f610b08f06f437e4482f291fa7b47cbb7b92984
Diffstat (limited to 'resources/libraries/python/model/mem2raw.py')
-rw-r--r--resources/libraries/python/model/mem2raw.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/libraries/python/model/mem2raw.py b/resources/libraries/python/model/mem2raw.py
index c3145b9f31..543ee935e2 100644
--- a/resources/libraries/python/model/mem2raw.py
+++ b/resources/libraries/python/model/mem2raw.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2021 Cisco and/or its affiliates.
+# Copyright (c) 2022 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
@@ -141,5 +141,5 @@ def write_raw_output(raw_file_path, raw_data):
"""
raw_data = _pre_serialize_root(raw_data)
os.makedirs(os.path.dirname(raw_file_path), exist_ok=True)
- with open(raw_file_path, u"xt", encoding="utf-8") as file_out:
+ with open(raw_file_path, u"wt", encoding="utf-8") as file_out:
json.dump(raw_data, file_out, indent=1)