aboutsummaryrefslogtreecommitdiffstats
path: root/policyhandler/utils.py
diff options
context:
space:
mode:
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: