(self)
| 135 | self.display_name, self.addresses) |
| 136 | |
| 137 | def __str__(self): |
| 138 | if self.display_name is None and len(self.addresses)==1: |
| 139 | return str(self.addresses[0]) |
| 140 | disp = self.display_name |
| 141 | if disp is not None and not parser.SPECIALS.isdisjoint(disp): |
| 142 | disp = parser.quote_string(disp) |
| 143 | adrstr = ", ".join(str(x) for x in self.addresses) |
| 144 | adrstr = ' ' + adrstr if adrstr else adrstr |
| 145 | return "{}:{};".format(disp, adrstr) |
| 146 | |
| 147 | def __eq__(self, other): |
| 148 | if not isinstance(other, Group): |
nothing calls this directly
no test coverage detected