mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
maintainers/scripts/sha-to-sri: drop unused imports
This commit is contained in:
parent
bf6b5f7f85
commit
e079a279f4
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#! nix-shell -i "python3 -I" -p "python3.withPackages(p: with p; [ rich structlog ])"
|
#! nix-shell -i "python3 -I" -p "python3.withPackages(p: with p; [ rich structlog ])"
|
||||||
|
|
||||||
from abc import ABC, abstractclassmethod, abstractmethod
|
from abc import ABC, abstractmethod
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from structlog.contextvars import bound_contextvars as log_context
|
from structlog.contextvars import bound_contextvars as log_context
|
||||||
|
@ -204,7 +204,7 @@ def fileToSRI(p: Path):
|
||||||
_SKIP_RE = re.compile("(generated by)|(do not edit)", re.IGNORECASE)
|
_SKIP_RE = re.compile("(generated by)|(do not edit)", re.IGNORECASE)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from sys import argv, stderr
|
from sys import argv
|
||||||
|
|
||||||
logger.info("Starting!")
|
logger.info("Starting!")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue