MCPcopy Index your code
hub / github.com/python/cpython / canonize

Method canonize

Lib/idlelib/filelist.py:103–111  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

101 pass
102
103 def canonize(self, filename):
104 if not os.path.isabs(filename):
105 try:
106 pwd = os.getcwd()
107 except OSError:
108 pass
109 else:
110 filename = os.path.join(pwd, filename)
111 return os.path.normpath(filename)
112
113
114def _test(): # TODO check and convert to htest

Callers 2

openMethod · 0.95
filename_changed_editMethod · 0.95

Calls 2

isabsMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected