projects
/
ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
migrate things to python3
[ansible.git]
/
roles
/
apache
/
files
/
log-anon
diff --git
a/roles/apache/files/log-anon
b/roles/apache/files/log-anon
index 32b6c1e58b61d417495b463b82a37bec71a2fd64..0b8466832f1b8e21494fbe2b37c600a5e1061f06 100644
(file)
--- a/
roles/apache/files/log-anon
+++ b/
roles/apache/files/log-anon
@@
-1,9
+1,9
@@
-#!/usr/bin/python
+#!/usr/bin/python
3
import sys, re
from netaddr import IPAddress, AddrFormatError
if len(sys.argv) != 2:
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")
sys.exit(1)
log = open(sys.argv[1], "a")