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

Method _make_prefix

tools/python-3.11.9-amd64/Lib/difflib.py:1882–1891  ·  view source on GitHub ↗

Create unique anchor prefixes

(self)

Source from the content-addressed store, hash-verified

1880 % (id,linenum,text)
1881
1882 def _make_prefix(self):
1883 """Create unique anchor prefixes"""
1884
1885 # Generate a unique anchor prefix so multiple tables
1886 # can exist on the same HTML page without conflicts.
1887 fromprefix = "from%d_" % HtmlDiff._default_prefix
1888 toprefix = "to%d_" % HtmlDiff._default_prefix
1889 HtmlDiff._default_prefix += 1
1890 # store prefixes so line format method has access
1891 self._prefix = [fromprefix,toprefix]
1892
1893 def _convert_flags(self,fromlist,tolist,flaglist,context,numlines):
1894 """Makes list of "next" links"""

Callers 1

make_tableMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected