who needs newlines...?

This commit is contained in:
Johannes Findeisen 2013-06-10 05:20:50 +02:00
commit ebf50a2d99
3 changed files with 4 additions and 13 deletions

View file

@ -15,31 +15,25 @@ from service import Service
class HttpService(Service):
def __init__(self, parser, log, **kwargs):
super(Service, self).__init__(parser)
if "string" in kwargs:
self.string = kwargs["string"]
else:
log.w("There is no string set to match")
raise
if "method" in kwargs:
self.method = kwargs["method"]
else:
self.method = "get"
if "params" in kwargs:
self.params = kwargs["params"]
if "path" in kwargs:
self.path = kwargs["path"]
else:
self.path = "/"
if "port" in kwargs:
self.port = kwargs["port"]
else:
self.port = "80"
if "protocol" in kwargs:
self.protocol = kwargs["protocol"]
else: