MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / canonic

Method canonic

tools/python-3.11.9-amd64/Lib/bdb.py:39–54  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers 13

break_hereMethod · 0.95
break_anywhereMethod · 0.95
set_breakMethod · 0.95
clear_breakMethod · 0.95
clear_all_file_breaksMethod · 0.95
get_breakMethod · 0.95
get_breaksMethod · 0.95
get_file_breaksMethod · 0.95
format_stack_entryMethod · 0.95
user_lineMethod · 0.80
lookupmoduleMethod · 0.80
_runMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected