cidr2glob: python -> python3

This commit is contained in:
tv 2022-06-28 09:50:47 +02:00
parent 1328a34e51
commit ecf4c704f1

View File

@ -1,6 +1,7 @@
{ python, writeScriptBin, ... }: { python3, writeScriptBin, ... }:
let let
python = python3;
pythonEnv = python.withPackages (ps: [ ps.netaddr ]); pythonEnv = python.withPackages (ps: [ ps.netaddr ]);
in in
writeScriptBin "cidr2glob" '' writeScriptBin "cidr2glob" ''
@ -25,6 +26,6 @@ in
if __name__ == "__main__": if __name__ == "__main__":
for cidr in sys.stdin: for cidr in sys.stdin:
for glob in cidr2glob(cidr): for glob in cidr2glob(cidr):
print glob print(glob)
'' ''