(self, unit)
| 209 | self.regexp = re.compile(regexp_string) |
| 210 | |
| 211 | def account(self, unit): |
| 212 | if (self.regexp.match(unit.file)): |
| 213 | self.loc += unit.loc |
| 214 | self.in_bytes += unit.in_bytes |
| 215 | self.expanded += unit.expanded |
| 216 | self.expanded_bytes += unit.expanded_bytes |
| 217 | self.count += 1 |
| 218 | |
| 219 | def to_string(self, name_width): |
| 220 | return "{:<{}} ({:>5} files): {}".format( |