(self, encoding='ascii', errors='strict')
| 146 | __slots__ = () |
| 147 | |
| 148 | def encode(self, encoding='ascii', errors='strict'): |
| 149 | result = self._encoded_counterpart(*(x.encode(encoding, errors) |
| 150 | if x is not None else None |
| 151 | for x in self)) |
| 152 | try: |
| 153 | result._keep_empty = self._keep_empty |
| 154 | except AttributeError: |
| 155 | pass |
| 156 | return result |
| 157 | |
| 158 | |
| 159 | class _ResultMixinBytes(object): |
no outgoing calls
no test coverage detected