summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2022-06-28 09:50:47 +0200
committertv <tv@krebsco.de>2022-06-28 09:51:46 +0200
commitecf4c704f1d0d00d6a8408968ab820fbc422213a (patch)
tree556e05a3cb8dbc69932c3904a8f88739f01243ab /krebs
parent1328a34e51e0a14aae8dbfe6469cc580ee739bce (diff)
cidr2glob: python -> python3
Diffstat (limited to 'krebs')
-rw-r--r--krebs/5pkgs/simple/cidr2glob.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/krebs/5pkgs/simple/cidr2glob.nix b/krebs/5pkgs/simple/cidr2glob.nix
index 9b0b3f86b..47a75ea41 100644
--- a/krebs/5pkgs/simple/cidr2glob.nix
+++ b/krebs/5pkgs/simple/cidr2glob.nix
@@ -1,6 +1,7 @@
-{ python, writeScriptBin, ... }:
+{ python3, writeScriptBin, ... }:
let
+ python = python3;
pythonEnv = python.withPackages (ps: [ ps.netaddr ]);
in
writeScriptBin "cidr2glob" ''
@@ -25,6 +26,6 @@ in
if __name__ == "__main__":
for cidr in sys.stdin:
for glob in cidr2glob(cidr):
- print glob
+ print(glob)
''