projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Used isort to sort imports. Also added to the git pre-commit hook.
[python_utils.git]
/
acl.py
diff --git
a/acl.py
b/acl.py
index adec643d56bfd085f4ef5c30485bfa09d857d77b..a936339a0dcb715db02327125c9f5b54e9b100d3 100644
(file)
--- a/
acl.py
+++ b/
acl.py
@@
-1,11
+1,11
@@
#!/usr/bin/env python3
#!/usr/bin/env python3
-from abc import ABC, abstractmethod
import enum
import fnmatch
import logging
import re
import enum
import fnmatch
import logging
import re
-from typing import Any, Callable, List, Optional, Set, Sequence
+from abc import ABC, abstractmethod
+from typing import Any, Callable, List, Optional, Sequence, Set
from overrides import overrides
from overrides import overrides
@@
-28,9
+28,7
@@
class Order(enum.Enum):
class SimpleACL(ABC):
"""A simple Access Control List interface."""
class SimpleACL(ABC):
"""A simple Access Control List interface."""
- def __init__(
- self, *, order_to_check_allow_deny: Order, default_answer: bool
- ):
+ def __init__(self, *, order_to_check_allow_deny: Order, default_answer: bool):
if order_to_check_allow_deny not in (
Order.ALLOW_DENY,
Order.DENY_ALLOW,
if order_to_check_allow_deny not in (
Order.ALLOW_DENY,
Order.DENY_ALLOW,