X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/cdc201f4b298f5c13786d690aa2bb3d84123ee59..66aa304494ab0ed1c42e1cfad2497616ae8301d1:/roles/apache/files/log-anon diff --git a/roles/apache/files/log-anon b/roles/apache/files/log-anon index 32b6c1e..0b84668 100644 --- a/roles/apache/files/log-anon +++ b/roles/apache/files/log-anon @@ -1,9 +1,9 @@ -#!/usr/bin/python +#!/usr/bin/python3 import sys, re from netaddr import IPAddress, AddrFormatError if len(sys.argv) != 2: - print >>sys.stderr, "Usage: %s filename" % sys.argv[0] + print("Usage: %s filename" % sys.argv[0], file=sys.stderr) sys.exit(1) log = open(sys.argv[1], "a")