Remove unused code
This commit is contained in:
parent
40effe4548
commit
697fdf1d6d
|
@ -5,7 +5,6 @@ import json
|
||||||
import math
|
import math
|
||||||
import user_agents
|
import user_agents
|
||||||
import re
|
import re
|
||||||
import pattern.en
|
|
||||||
from datetime import date
|
from datetime import date
|
||||||
from num2words import num2words
|
from num2words import num2words
|
||||||
|
|
||||||
|
@ -160,18 +159,6 @@ def is_in_range(address_range, address):
|
||||||
return False
|
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):
|
def format_wikibase_time(v):
|
||||||
p = v["precision"]
|
p = v["precision"]
|
||||||
t = v["time"]
|
t = v["time"]
|
||||||
|
|
Loading…
Reference in a new issue