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

Method plural

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

Source from the content-addressed store, hash-verified

776 s = "%d:%02d:%02d" % (hh, mm, ss)
777 if self._days:
778 def plural(n):
779 return n, abs(n) != 1 and "s" or ""
780 s = ("%d day%s, " % plural(self._days)) + s
781 if self._microseconds:
782 s = s + ".%06d" % self._microseconds

Callers 4

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

Calls 1

absFunction · 0.85

Tested by

no test coverage detected