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

Method plural

tools/python-3.11.9-amd64/Lib/datetime.py:712–713  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

710 s = "%d:%02d:%02d" % (hh, mm, ss)
711 if self._days:
712 def plural(n):
713 return n, abs(n) != 1 and "s" or ""
714 s = ("%d day%s, " % plural(self._days)) + s
715 if self._microseconds:
716 s = s + ".%06d" % self._microseconds

Callers 4

gettextMethod · 0.80
ngettextMethod · 0.80
pgettextMethod · 0.80
npgettextMethod · 0.80

Calls 1

absFunction · 0.70

Tested by

no test coverage detected