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)
| 213 | self._load_breaks() |
| 214 | |
| 215 | def canonic(self, filename): |
| 216 | """Return canonical form of filename. |
| 217 | |
| 218 | For real filenames, the canonical form is a case-normalized (on |
| 219 | case insensitive filesystems) absolute path. 'Filenames' with |
| 220 | angle brackets, such as "<stdin>", generated in interactive |
| 221 | mode, are returned unchanged. |
| 222 | """ |
| 223 | if filename == "<" + filename[1:-1] + ">": |
| 224 | return filename |
| 225 | canonic = self.fncache.get(filename) |
| 226 | if not canonic: |
| 227 | canonic = os.path.abspath(filename) |
| 228 | canonic = os.path.normcase(canonic) |
| 229 | self.fncache[filename] = canonic |
| 230 | return canonic |
| 231 | |
| 232 | def start_trace(self): |
| 233 | if self.monitoring_tracer: |