diff options
author | Tony Hansen <tony@att.com> | 2020-08-21 14:56:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-08-21 14:56:49 +0000 |
commit | f163850b207339096a0cacb5219aa0d86bfd81f8 (patch) | |
tree | fb6ab8d98fb054ed18d76cf3374df55e9bf96780 /policyhandler/utils.py | |
parent | 47ca2c3e571547533e7aadb217686f87ab388951 (diff) | |
parent | 49d734038679e128ecd523aea45391327685ce41 (diff) |
Merge "Run in Python 3.8"
Diffstat (limited to 'policyhandler/utils.py')
-rw-r--r-- | policyhandler/utils.py | 3 |
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: |