Code tidy to ensure it complies with the Python coding standard (10/10 from PyLint).
This commit is contained in:
parent
2244ac497d
commit
d15d887a7f
|
@ -1,11 +1,12 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
"""Script to create a ACL file for inclusion within Varnish."""
|
"""Script to create a ACL file for inclusion within Varnish."""
|
||||||
|
|
||||||
import blocklist
|
import blocklist
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
class VarnishBlockList(blocklist.BlockList):
|
class VarnishBlockList(blocklist.BlockList):
|
||||||
"""New class to extend the main BlockList class for implementation with Varnish."""
|
"""New class to extend the main BlockList class for
|
||||||
|
implementation with Varnish."""
|
||||||
def export(self):
|
def export(self):
|
||||||
"""Exports blocklist addresses for use within Varnish."""
|
"""Exports blocklist addresses for use within Varnish."""
|
||||||
print "acl block_list {"
|
print "acl block_list {"
|
||||||
|
|
Loading…
Reference in a new issue