(self, decode=True)
| 173 | |
| 174 | @property |
| 175 | def lastgroup(self, decode=True): |
| 176 | groups = [ |
| 177 | gname |
| 178 | for gindex, gname in enumerate(self.re.capture_names()) |
| 179 | if gname is not None and self.captures[gindex] is not None |
| 180 | ] |
| 181 | if groups: |
| 182 | if decode: |
| 183 | return groups[-1].decode('utf8') |
| 184 | else: |
| 185 | return groups[-1] |
| 186 | |
| 187 | @property |
| 188 | def captures(self): |
nothing calls this directly
no test coverage detected