diff options
| author | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2002-06-28 04:18:12 +0000 |
|---|---|---|
| committer | goodger <goodger@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2002-06-28 04:18:12 +0000 |
| commit | 8772c081ae9e24fd5ee41211847ed9afc8cf1872 (patch) | |
| tree | 4609ebac0a869f986bc083f2af9ffa98d70d4b71 /docutils/utils.py | |
| parent | bd73da1949ce273e385463736c868a9d72b32d0d (diff) | |
| download | docutils-8772c081ae9e24fd5ee41211847ed9afc8cf1872.tar.gz | |
- Added support for input and output encodings and for internal Unicode support.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@220 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/utils.py')
| -rw-r--r-- | docutils/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docutils/utils.py b/docutils/utils.py index 161526fa0..c2418d91c 100644 --- a/docutils/utils.py +++ b/docutils/utils.py @@ -237,7 +237,7 @@ def extract_attributes(field_list): if len(field) != 2: raise BadAttributeError( 'extension attribute field may not contain field arguments') - name = field[0].astext().lower() + name = str(field[0].astext().lower()) body = field[1] if len(body) == 0: data = None @@ -275,7 +275,7 @@ def assemble_attribute_dict(attlist, attspec): try: attributes[name] = convertor(value) except (ValueError, TypeError), detail: - raise detail.__class__('(attribute "%s", value "%r") %s' + raise detail.__class__('(attribute "%s", value "%s") %s' % (name, value, detail)) return attributes |
