1.1 --- a/imiptools/data.py Wed Oct 25 00:18:24 2017 +0200
1.2 +++ b/imiptools/data.py Fri Oct 27 22:26:10 2017 +0200
1.3 @@ -1007,7 +1007,7 @@
1.4 uri_value = get_uri
1.5
1.6 def uri_values(values):
1.7 - return map(get_uri, values)
1.8 + return values and map(get_uri, values)
1.9
1.10 def uri_dict(d):
1.11 return dict([(get_uri(key), value) for key, value in d.items()])
1.12 @@ -1016,7 +1016,7 @@
1.13 return get_uri(item[0]), item[1]
1.14
1.15 def uri_items(items):
1.16 - return [(get_uri(value), attr) for value, attr in items]
1.17 + return items and [(get_uri(value), attr) for value, attr in items]
1.18
1.19 # Operations on structure data.
1.20