MCPcopy Index your code
hub / github.com/RustPython/RustPython / plural

Method plural

Lib/_pydatetime.py:769–770  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

767 s = "%d:%02d:%02d" % (hh, mm, ss)
768 if self._days:
769 def plural(n):
770 return n, abs(n) != 1 and "s" or ""
771 s = ("%d day%s, " % plural(self._days)) + s
772 if self._microseconds:
773 s = s + ".%06d" % self._microseconds

Callers 4

gettextMethod · 0.45
ngettextMethod · 0.45
pgettextMethod · 0.45
npgettextMethod · 0.45

Calls 1

absFunction · 0.70

Tested by

no test coverage detected