Commit efc2f6c1 authored by Nils Goroll's avatar Nils Goroll Committed by Pål Hermunn Johansen

fix vmod object constructor documentation

The vmod name got lost in e7c04974

example before/after diff:

- new xshard_param = shard_param()
+ new xshard_param = directors.shard_param()
parent 93212f74
...@@ -407,11 +407,13 @@ class ProtoType(object): ...@@ -407,11 +407,13 @@ class ProtoType(object):
pfx += pfx pfx += pfx
s = pfx s = pfx
if type(self.st) == s_object: if type(self.st) == s_object:
s += "new x" + self.bname + " = " s += "new " + self.obj + " = "
elif self.retval is not None: elif self.retval is not None:
s += self.retval.vcl() + " " s += self.retval.vcl() + " "
if type(self.st) == s_method: if type(self.st) == s_object:
s += self.st.vcc.modname + "." + self.name + "("
elif type(self.st) == s_method:
s += self.obj + self.bname + "(" s += self.obj + self.bname + "("
else: else:
s += self.name + "(" s += self.name + "("
......
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