File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
# -*- coding: utf-8 -*-
3
+ import copy
3
4
import importlib
4
5
import logging
5
-
6
6
import re
7
- from saml2 .saml import NAME_FORMAT_URI
8
7
import six
9
- from saml2 import xmlenc
10
8
11
9
from saml2 import saml
12
-
13
- from saml2 .time_util import instant , in_a_while
10
+ from saml2 import xmlenc
14
11
from saml2 .attribute_converter import from_local , get_local_name
15
- from saml2 .s_utils import sid , MissingValue
16
- from saml2 .s_utils import factory
17
12
from saml2 .s_utils import assertion_factory
13
+ from saml2 .s_utils import factory
14
+ from saml2 .s_utils import sid , MissingValue
15
+ from saml2 .saml import NAME_FORMAT_URI
16
+ from saml2 .time_util import instant , in_a_while
18
17
19
18
logger = logging .getLogger (__name__ )
20
19
@@ -319,7 +318,7 @@ def compile(self, restrictions):
319
318
a compiled regular expression.
320
319
"""
321
320
322
- self ._restrictions = restrictions . copy ( )
321
+ self ._restrictions = copy . deepcopy ( restrictions )
323
322
324
323
for who , spec in self ._restrictions .items ():
325
324
if spec is None :
You can’t perform that action at this time.
0 commit comments