aboutsummaryrefslogtreecommitdiffstats
path: root/policyhandler/utils.py
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2020-08-03 10:04:35 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2020-08-21 09:15:13 +0000
commit49d734038679e128ecd523aea45391327685ce41 (patch)
tree6cae177c20660e680e6c75608a437cd6b2a49d94 /policyhandler/utils.py
parente969b079e331cc32b1ca361c49ee7b56e43900a7 (diff)
Run in Python 3.8
Use Docker image prepared by integration team Issue-ID: DCAEGEN2-2292 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I6dda392465a20f7199cf3a27a9835c692bf7aaf4
Diffstat (limited to 'policyhandler/utils.py')
-rw-r--r--policyhandler/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/policyhandler/utils.py b/policyhandler/utils.py
index 685d7d8..99e9ed7 100644
--- a/policyhandler/utils.py
+++ b/policyhandler/utils.py
@@ -1,5 +1,6 @@
# ================================================================================
# Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
+# Copyright 2020 Deutsche Telekom. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -242,7 +243,7 @@ class RegexCoarser(object):
@staticmethod
def _compress(trie):
"""compress trie into shortest leaves"""
- for key, subtrie in trie.items():
+ for key, subtrie in trie.copy().items():
RegexCoarser._compress(subtrie)
subkeys = list(subtrie.keys())
if len(subkeys) == 1: