aboutsummaryrefslogtreecommitdiffstats
path: root/policyhandler
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-26 14:03:34 +0000
commite76dddf2c9ff24ad69b95b789326b7644a1edae0 (patch)
tree1adbc8b96bc5607654ec793cfac1a10046212466 /policyhandler
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: Iaed8eda8390287942249857458e756c1dc221f7f
Diffstat (limited to 'policyhandler')
-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: