Return canonical form of filename. For real filenames, the canonical form is a case-normalized (on case insensitive filesystems) absolute path. 'Filenames' with angle brackets, such as " ", generated in interactive mode, are returned unchanged.
(self, filename)
| 37 | self._load_breaks() |
| 38 | |
| 39 | def canonic(self, filename): |
| 40 | """Return canonical form of filename. |
| 41 | |
| 42 | For real filenames, the canonical form is a case-normalized (on |
| 43 | case insensitive filesystems) absolute path. 'Filenames' with |
| 44 | angle brackets, such as "<stdin>", generated in interactive |
| 45 | mode, are returned unchanged. |
| 46 | """ |
| 47 | if filename == "<" + filename[1:-1] + ">": |
| 48 | return filename |
| 49 | canonic = self.fncache.get(filename) |
| 50 | if not canonic: |
| 51 | canonic = os.path.abspath(filename) |
| 52 | canonic = os.path.normcase(canonic) |
| 53 | self.fncache[filename] = canonic |
| 54 | return canonic |
| 55 | |
| 56 | def reset(self): |
| 57 | """Set values of attributes as ready to start debugging.""" |
no test coverage detected