Remove unused util function

This commit is contained in:
ines 2017-04-16 20:35:08 +02:00
parent 7670c745b6
commit 1f9f867c70

View File

@ -45,15 +45,6 @@ def ensure_path(path):
return path
def or_(val1, val2):
if val1 is not None:
return val1
elif callable(val2):
return val2()
else:
return val2
def read_regex(path):
path = ensure_path(path)
with path.open() as file_: