X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/2f2bd6804c18cdddc86cb3883ff8482c7cc7612f..fdb23fdc21e9474901e06169ab01a8fac78ab26f:/roles/apache/files/log-anon?ds=inline 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")