Code tidy to ensure it complies with the Python coding standard (10/10 from PyLint).

This commit is contained in:
Scott Wallace 2014-09-07 20:08:30 +01:00
parent 2244ac497d
commit d15d887a7f

View file

@ -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 {"