Skip to content

Commit 7ad2642

Browse files
committed
reformat
1 parent e14740f commit 7ad2642

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/pyff/builtins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from pyff.pipes import PipeException, PipelineCallback, Plumbing, pipe, registry
3131
from pyff.samlmd import (
3232
annotate_entity,
33+
discojson_sp_t,
3334
discojson_t,
3435
entitiesdescriptor,
3536
find_in_document,
@@ -40,7 +41,6 @@
4041
set_pubinfo,
4142
set_reginfo,
4243
sort_entities,
43-
discojson_sp_t,
4444
)
4545
from pyff.utils import (
4646
datetime2iso,

src/pyff/resource.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
import os
99
import traceback
10-
from collections import deque, defaultdict
10+
from collections import defaultdict, deque
1111
from datetime import datetime
1212
from enum import Enum
1313
from threading import Condition, Lock
14-
from typing import Any, Callable, Deque, Dict, Iterable, List, Mapping, Optional, TYPE_CHECKING, Tuple
14+
from typing import TYPE_CHECKING, Any, Callable, Deque, Dict, Iterable, List, Mapping, Optional, Tuple
1515
from urllib.parse import quote as urlescape
1616

1717
import requests

src/pyff/samlmd.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,10 @@ def entity_extended_display_i18n(entity, default_lang=None):
708708

709709
def entity_categories(entity):
710710
cats = None
711-
cats_els = entity.findall('.//{%s}EntityAttributes/{%s}Attribute[@Name="http://macedir.org/entity-category"]/{%s}AttributeValue' % (NS['mdattr'], NS['saml'], NS['saml']))
711+
cats_els = entity.findall(
712+
'.//{%s}EntityAttributes/{%s}Attribute[@Name="http://macedir.org/entity-category"]/{%s}AttributeValue'
713+
% (NS['mdattr'], NS['saml'], NS['saml'])
714+
)
712715
if len(cats_els) > 0:
713716
cats = [el.text for el in cats_els]
714717
return cats
@@ -819,7 +822,6 @@ def discojson(e, sources=None, langs=None, fallback_to_favicon=False, icon_store
819822
auth='saml',
820823
entity_id=entity_id,
821824
entityID=entity_id,
822-
823825
)
824826
if reg_auth is not None:
825827
d['registration_authority'] = reg_auth

0 commit comments

Comments
 (0)