diff options
author | Sven Eden <yamakuzure@gmx.net> | 2018-03-13 19:20:00 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-03-26 18:26:00 +0200 |
commit | 6051292c03632cfa486da965be6a7bf0a4c1c508 (patch) | |
tree | 1c2fa3649761228d2bc3b8ffb3dc06c7b24310cf | |
parent | 8a17d92e544e7842a5740d7a66e0ef93daca18e6 (diff) |
Prep v236 : Add missing SPDX-License-Identifier (9/9) tools
-rw-r--r-- | tools/gdb-sd_dump_hashmaps.py | 1 | ||||
-rwxr-xr-x | tools/make-directive-index.py | 1 | ||||
-rwxr-xr-x | tools/make-man-index.py | 1 | ||||
-rwxr-xr-x | tools/make-man-rules.py | 1 | ||||
-rwxr-xr-x | tools/xml_helper.py | 3 |
5 files changed, 7 insertions, 0 deletions
diff --git a/tools/gdb-sd_dump_hashmaps.py b/tools/gdb-sd_dump_hashmaps.py index 4835f5e86..db9fd2d3a 100644 --- a/tools/gdb-sd_dump_hashmaps.py +++ b/tools/gdb-sd_dump_hashmaps.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */ +# SPDX-License-Identifier: LGPL-2.1+ # # This file is part of elogind. # diff --git a/tools/make-directive-index.py b/tools/make-directive-index.py index 06ef8f781..8a1dfed0b 100755 --- a/tools/make-directive-index.py +++ b/tools/make-directive-index.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */ +# SPDX-License-Identifier: LGPL-2.1+ # # This file is part of elogind. # diff --git a/tools/make-man-index.py b/tools/make-man-index.py index 9c08f510e..efbe177b8 100755 --- a/tools/make-man-index.py +++ b/tools/make-man-index.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */ +# SPDX-License-Identifier: LGPL-2.1+ # # This file is part of elogind. # diff --git a/tools/make-man-rules.py b/tools/make-man-rules.py index e0f18d6fb..444d4a6ee 100755 --- a/tools/make-man-rules.py +++ b/tools/make-man-rules.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */ +# SPDX-License-Identifier: LGPL-2.1+ # # This file is part of systemd. # diff --git a/tools/xml_helper.py b/tools/xml_helper.py index 0088be5bd..47434c715 100755 --- a/tools/xml_helper.py +++ b/tools/xml_helper.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */ +# SPDX-License-Identifier: LGPL-2.1+ # # This file is part of systemd. # @@ -27,9 +28,11 @@ class CustomResolver(tree.Resolver): _parser = tree.XMLParser() _parser.resolvers.add(CustomResolver()) + def xml_parse(page): doc = tree.parse(page, _parser) doc.xinclude() return doc + def xml_print(xml): return tree.tostring(xml, pretty_print=True, encoding='utf-8') |