autohelp: don't specify encoding in the base xml
Specifying the encoding and working with unicode strings in not supported in lxml. The BASE_XML string is only used to init the XML tree and does not need a specific encoding. The utf-8 encoding is explicitely added when the final XML is written to file. Change-Id: I74e0a316cf718ad9768a690f8ccc4a1cc9a9fc7e
This commit is contained in:
parent
12729c7275
commit
7a1046484b
@ -42,7 +42,7 @@ IGNORE = ['trove.guestagent.datastore.postgresql.manager',
|
|||||||
'trove.guestagent.datastore.postgresql.service.users',
|
'trove.guestagent.datastore.postgresql.service.users',
|
||||||
'trove.guestagent.datastore.postgresql.service.database']
|
'trove.guestagent.datastore.postgresql.service.database']
|
||||||
|
|
||||||
BASE_XML = '''<?xml version="1.0" encoding="UTF-8"?>
|
BASE_XML = '''<?xml version="1.0"?>
|
||||||
<para xmlns="http://docbook.org/ns/docbook"
|
<para xmlns="http://docbook.org/ns/docbook"
|
||||||
version="5.0">
|
version="5.0">
|
||||||
<!-- Warning: Do not edit this file. It is automatically
|
<!-- Warning: Do not edit this file. It is automatically
|
||||||
|
@ -32,7 +32,7 @@ from autohelp import OptionsCache # noqa
|
|||||||
|
|
||||||
DBK_NS = ".//{http://docbook.org/ns/docbook}"
|
DBK_NS = ".//{http://docbook.org/ns/docbook}"
|
||||||
|
|
||||||
BASE_XML = '''<?xml version="1.0" encoding="UTF-8"?>
|
BASE_XML = '''<?xml version="1.0"?>
|
||||||
<para xmlns="http://docbook.org/ns/docbook"
|
<para xmlns="http://docbook.org/ns/docbook"
|
||||||
version="5.0">
|
version="5.0">
|
||||||
<!-- The tool that generated this table lives in the
|
<!-- The tool that generated this table lives in the
|
||||||
|
Loading…
Reference in New Issue
Block a user