make pylint happy
This commit is contained in:
@@ -70,6 +70,9 @@ skips = ["B101"]
|
|||||||
[tool.pylint.master]
|
[tool.pylint.master]
|
||||||
ignore = "tests,examples"
|
ignore = "tests,examples"
|
||||||
|
|
||||||
|
[tool.pylint.format]
|
||||||
|
max-line-length = 120
|
||||||
|
|
||||||
[tool.pylint.messages_control]
|
[tool.pylint.messages_control]
|
||||||
# black is taking care of this
|
# black is taking care of this
|
||||||
disable = "bad-continuation,fixme"
|
disable = "bad-continuation,fixme,wrong-import-order,wrong-import-position"
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ def dict_loader(filename: str) -> Generator[Tuple[int, List[str]], None, None]:
|
|||||||
Additionally to the "regular" (Free)RADIUS Dictionary tokens "FILE_OPENED"
|
Additionally to the "regular" (Free)RADIUS Dictionary tokens "FILE_OPENED"
|
||||||
and "FILE_CLOSED" tokens will be emitted.
|
and "FILE_CLOSED" tokens will be emitted.
|
||||||
"""
|
"""
|
||||||
with open(filename, "r") as rad_dict:
|
with open(filename, "r", encoding="UTF-8") as rad_dict:
|
||||||
yield from dict_parser(filename, rad_dict)
|
yield from dict_parser(filename, rad_dict)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
# Copyright 2020 Istvan Ruzman
|
# Copyright 2020 Istvan Ruzman
|
||||||
# SPDX-License-Identifier: MIT OR Apache-2.0
|
# SPDX-License-Identifier: MIT OR Apache-2.0
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
"""Class for RADIUS Packet"""
|
"""Class for RADIUS Packet"""
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
import hashlib
|
import hashlib
|
||||||
import hmac
|
import hmac
|
||||||
|
|||||||
Reference in New Issue
Block a user