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

Function cut

tools/python-3.11.9-amd64/Lib/nntplib.py:1078–1081  ·  view source on GitHub ↗
(s, lim)

Source from the content-addressed store, hash-verified

1076 print('Group', name, 'has', count, 'articles, range', first, 'to', last)
1077
1078 def cut(s, lim):
1079 if len(s) > lim:
1080 s = s[:lim - 4] + "..."
1081 return s
1082
1083 first = str(int(last) - args.nb_articles + 1)
1084 resp, overviews = s.xover(first, last)

Callers 1

nntplib.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected