Skip to content

Commit 097063d

Browse files
committed
Cleanup imports
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 6f06fc9 commit 097063d

File tree

4 files changed

+7
-43
lines changed

4 files changed

+7
-43
lines changed

src/saml2/sdb.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,6 @@
44

55
from saml2.ident import code_binary
66

7-
from saml2 import md
8-
from saml2 import saml
9-
from saml2.extension import mdui
10-
from saml2.extension import idpdisc
11-
from saml2.extension import dri
12-
from saml2.extension import mdattr
13-
from saml2 import xmldsig
14-
from saml2 import xmlenc
15-
16-
17-
__author__ = 'rolandh'
187

198
logger = logging.getLogger(__name__)
209

tests/test_30_mdstore_old.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,7 @@
1717
from saml2 import config
1818
from saml2.attribute_converter import ac_factory
1919
from saml2.attribute_converter import d_to_local_name
20-
21-
from saml2.extension import mdui
22-
from saml2.extension import idpdisc
23-
from saml2.extension import dri
24-
from saml2.extension import mdattr
2520
from saml2.s_utils import UnknownPrincipal
26-
from saml2 import xmldsig
27-
from saml2 import xmlenc
2821

2922
from pathutils import full_path
3023

tests/test_38_metadata_filter.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
from saml2 import md
2-
from saml2 import saml
3-
from saml2 import config
4-
from saml2 import xmldsig
5-
from saml2 import xmlenc
1+
from pathutils import full_path
62

3+
from saml2 import config
74
from saml2.filter import AllowDescriptor
85
from saml2.mdstore import MetadataStore
96
from saml2.attribute_converter import ac_factory
10-
from saml2.extension import mdui
11-
from saml2.extension import idpdisc
12-
from saml2.extension import dri
13-
from saml2.extension import mdattr
147

15-
from pathutils import full_path
168

179
__author__ = 'roland'
1810

tools/mdexport_test.py

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
#!/usr/bin/env python
2-
import sys
3-
4-
from saml2 import saml
5-
from saml2 import md
6-
from saml2.extension import mdui
7-
from saml2.extension import idpdisc
8-
from saml2.extension import dri
9-
from saml2.extension import mdattr
10-
from saml2.extension import shibmd
11-
from saml2 import xmldsig
12-
from saml2 import xmlenc
13-
14-
from saml2.mdstore import MetaDataFile, MetaDataExtern
15-
16-
__author__ = 'rolandh'
172

183
"""
194
A script that imports and verifies metadata and then dumps it in a basic
205
dictionary format.
216
"""
227

8+
import sys
9+
10+
from saml2.mdstore import MetaDataExtern
11+
from saml2.mdstore import MetaDataFile
12+
2313

2414
MDIMPORT = {
2515
"swamid": {

0 commit comments

Comments
 (0)