summaryrefslogtreecommitdiff
path: root/misc_utils.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2021-07-08 19:44:27 -0700
committerScott Gasch <[email protected]>2021-07-08 19:44:27 -0700
commit3bc4daf1edc121cd633429187392227f2fa61885 (patch)
tree0663cf35f562c7023c914454c85050d502ad9f3c /misc_utils.py
parent5fd30ef12c100cbb936aa0fdb515b67cff4064db (diff)
Lots of changes.
Diffstat (limited to 'misc_utils.py')
-rw-r--r--misc_utils.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/misc_utils.py b/misc_utils.py
index 62e5798..3775d3f 100644
--- a/misc_utils.py
+++ b/misc_utils.py
@@ -7,29 +7,3 @@ import string_utils
def is_running_as_root() -> bool:
return os.geteuid() == 0
-
-
-def is_are(n: int) -> str:
- if n == 1:
- return "is"
- return "are"
-
-
-def pluralize(n: int) -> str:
- if n == 1:
- return ""
- return "s"
-
-
-def thify(n: int) -> str:
- digit = str(n)
- assert string_utils.is_integer_number(digit)
- digit = digit[-1:]
- if digit == "1":
- return "st"
- elif digit == "2":
- return "nd"
- elif digit == "3":
- return "rd"
- else:
- return "th"