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:
Gauvain Pocentek 2015-01-31 12:26:14 +01:00
parent 12729c7275
commit 7a1046484b
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ IGNORE = ['trove.guestagent.datastore.postgresql.manager',
'trove.guestagent.datastore.postgresql.service.users',
'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"
version="5.0">
<!-- Warning: Do not edit this file. It is automatically

View File

@ -32,7 +32,7 @@ from autohelp import OptionsCache # noqa
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"
version="5.0">
<!-- The tool that generated this table lives in the