Commit 43c36af1 authored by pk's avatar pk

updated the constant name

parent a4bdcb34
TCP_PROTOCOL = "TCP" TCP_PROTOCOL = "TCP"
UDP_PROTOCOL = "UDP" UDP_PROTOCOL = "UDP"
HTTP_APPLICATION_PROTOCOL = "http" HTTP_APPLICATION_PROTOCOL = "http"
OPTIONAL_APPLICATION_PROTOCOL = "" NOT_PROVIDED_APPLICATION_PROTOCOL = ""
def new_template_and_data(template, template_data_json): def new_template_and_data(template, template_data_json):
return struct(template = template, data = template_data_json) return struct(template = template, data = template_data_json)
...@@ -24,5 +24,5 @@ def path_dir(path): ...@@ -24,5 +24,5 @@ def path_dir(path):
return "/".join(split_path) or "/" return "/".join(split_path) or "/"
def new_port_spec(number, transport_protocol, application_protocol= OPTIONAL_APPLICATION_PROTOCOL): def new_port_spec(number, transport_protocol, application_protocol= NOT_PROVIDED_APPLICATION_PROTOCOL):
return PortSpec(number = number, transport_protocol = transport_protocol, application_protocol=application_protocol) return PortSpec(number = number, transport_protocol = transport_protocol, application_protocol=application_protocol)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment