Lines Matching refs:self
18 def __init__(self,name,port,proto): argument
19 self.name = name
20 self.port = port
21 self.proto = proto
22 self.aliases = []
24 def add_alias(self,alias): argument
25 self.aliases.append(alias)
27 def __str__(self): argument
28 result = "\\%0o%s" % (len(self.name),self.name)
29 result += "\\%0o\\%0o" % (((self.port >> 8) & 255), self.port & 255)
30 if self.proto == "tcp":
35 result += "\\%0o" % len(self.aliases)
36 for alias in self.aliases: