summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLars-Dominik Braun <lars@6xq.net>2016-10-02 14:19:33 +0200
committerLars-Dominik Braun <lars@6xq.net>2016-10-02 14:19:33 +0200
commitbd5f382b05dbf3225d02988149c50c0e6d666170 (patch)
treee54d8a080dba1a336a04285610be2aaf01a4ff7b /tools
parent8e597da451cb51dd879350e5ecf2a30b03ba980d (diff)
downloadeumel-bd5f382b05dbf3225d02988149c50c0e6d666170.tar.gz
eumel-bd5f382b05dbf3225d02988149c50c0e6d666170.tar.bz2
eumel-bd5f382b05dbf3225d02988149c50c0e6d666170.zip
formatRefs: Remove empty parent nodes
Diffstat (limited to 'tools')
-rwxr-xr-xtools/formatRefs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/formatRefs.py b/tools/formatRefs.py
index 303de05..f82705e 100755
--- a/tools/formatRefs.py
+++ b/tools/formatRefs.py
@@ -122,7 +122,7 @@ if __name__ == '__main__':
# where can we find it? (print)
# print from root to ref (i.e. magazine, volume, issue)
parents = reversed (list (getRecursiveAll (s, g, ref, s.isPartOf)))
- where = [formatParent (s, g, p) for p in parents]
+ where = list (filter (lambda x: x, [formatParent (s, g, p) for p in parents]))
thiswhere = formatParent (s, g, ref, False)
if thiswhere:
where.append (thiswhere)