Remove unused code

This commit is contained in:
Edward Betts 2022-04-08 10:37:59 +01:00
parent 40effe4548
commit 697fdf1d6d
1 changed files with 0 additions and 13 deletions

View File

@ -5,7 +5,6 @@ import json
import math
import user_agents
import re
import pattern.en
from datetime import date
from num2words import num2words
@ -160,18 +159,6 @@ def is_in_range(address_range, address):
return False
def pluralize_label(label):
text = label["value"]
if label["language"] != "en":
return text
# pattern.en.pluralize has the plural of 'mine' as 'ours'
if text == "mine":
return "mines"
return pattern.en.pluralize(text)
def format_wikibase_time(v):
p = v["precision"]
t = v["time"]