(self, name)
| 799 | return result |
| 800 | |
| 801 | def adjust_suffix(self, name): |
| 802 | if not self.translate_suffixes: |
| 803 | return name |
| 804 | pos = name.rfind(".") |
| 805 | if pos == -1: |
| 806 | return name |
| 807 | suffix = name[pos:] |
| 808 | return name[:pos] + suffixes.get(suffix, suffix) |
| 809 | |
| 810 | # Acceps either a string or a list of strings and returns a list of |
| 811 | # strings. Adjusts suffixes on all names. |