Skip to content

Commit d6c9802

Browse files
authored
Blacken code base (#1073)
1 parent 174ca7c commit d6c9802

59 files changed

Lines changed: 72 additions & 129 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pynetdicom/__init__.py

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

88
from ._version import __version__
99

10-
1110
# fmt: off
1211
# Update pydicom's UID dictionary with any missing transfer syntaxes
1312
UID_dictionary.update(
@@ -79,7 +78,6 @@
7978
)
8079
from pynetdicom.sop_class import register_uid
8180

82-
8381
# Setup default logging
8482
logging.getLogger(__name__).addHandler(logging.NullHandler())
8583

pynetdicom/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from pynetdicom import __version__
77

8-
98
_APPS = {
109
"echoscp": "pynetdicom.apps.echoscp.echoscp",
1110
"echoscu": "pynetdicom.apps.echoscu.echoscu",

pynetdicom/_config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from pynetdicom._validators import validate_ae, validate_ui
66

7-
87
LOG_HANDLER_LEVEL: str = "standard"
98
"""Default (non-user) event logging
109

pynetdicom/_globals.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from pydicom.uid import UID
44

5-
65
# The default Maximum PDU Length (in bytes)
76
# Must be 0 or greater than 7.
87
# A value of 0 indicates unlimited maximum length

pynetdicom/_validators.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from pydicom.uid import UID
77

8-
98
LOGGER = logging.getLogger(__name__)
109

1110

pynetdicom/_version.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from importlib.metadata import version
44
import re
55

6-
76
# pynetdicom version
87
__version__: str = version("pynetdicom")
98

pynetdicom/acse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def _negotiate_as_requestor(self) -> None:
474474
if rq_roles:
475475
for cx in self.requestor.requested_contexts:
476476
try:
477-
(cx.scu_role, cx.scp_role) = rq_roles[
477+
cx.scu_role, cx.scp_role = rq_roles[
478478
cast(UID, cx.abstract_syntax)
479479
]
480480
# If no role was specified then use False

pynetdicom/ae.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
DEFAULT_TRANSFER_SYNTAXES,
3838
)
3939

40-
4140
LOGGER = logging.getLogger(__name__)
4241

4342

pynetdicom/apps/echoscp/echoscp.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from pynetdicom._globals import ALL_TRANSFER_SYNTAXES, DEFAULT_MAX_LENGTH
1616
from pynetdicom.sop_class import Verification
1717

18-
1918
__version__ = "0.7.0"
2019

2120

pynetdicom/apps/echoscu/echoscu.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from pynetdicom._globals import DEFAULT_MAX_LENGTH
2121
from pynetdicom.sop_class import Verification
2222

23-
2423
__version__ = "0.7.0"
2524

2625

0 commit comments

Comments
 (0)