X-Git-Url: https://git.ralfj.de/ansible.git/blobdiff_plain/cdc201f4b298f5c13786d690aa2bb3d84123ee59..bb0f118049b0f9e85ff03d74eb81ab7d71bf97aa:/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")