Performance optimization: where possible, resolve the normalized name from the file system path.
(self)
| 1036 | |
| 1037 | @property |
| 1038 | def _normalized_name(self): |
| 1039 | """ |
| 1040 | Performance optimization: where possible, resolve the |
| 1041 | normalized name from the file system path. |
| 1042 | """ |
| 1043 | stem = os.path.basename(str(self._path)) |
| 1044 | return ( |
| 1045 | pass_none(Prepared.normalize)(self._name_from_stem(stem)) |
| 1046 | or super()._normalized_name |
| 1047 | ) |
| 1048 | |
| 1049 | @staticmethod |
| 1050 | def _name_from_stem(stem): |
nothing calls this directly
no test coverage detected