diff options
author | Michał Górny <mgorny@gentoo.org> | 2012-12-31 12:16:20 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2012-12-31 12:16:20 +0000 |
commit | 29b062d10f62cdd368d764cec17f8c96750494f9 (patch) | |
tree | e3bb49df95f2e6b5a46d97a321e35157302045b3 /dev-python/docutils/files | |
parent | Introduce a split ebuild for GLEP support for docutils. (diff) | |
download | historical-29b062d10f62cdd368d764cec17f8c96750494f9.tar.gz historical-29b062d10f62cdd368d764cec17f8c96750494f9.tar.bz2 historical-29b062d10f62cdd368d764cec17f8c96750494f9.zip |
Version bump with a patch for buildhtml.py. Move GLEP support to dev-python/docutils-glep.
Package-Manager: portage-2.2.0_alpha149/cvs/Linux x86_64
Manifest-Sign-Key: 0x42B9401D
Diffstat (limited to 'dev-python/docutils/files')
-rw-r--r-- | dev-python/docutils/files/docutils-0.10-optparser.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-python/docutils/files/docutils-0.10-optparser.patch b/dev-python/docutils/files/docutils-0.10-optparser.patch new file mode 100644 index 000000000000..a65fbde71ce0 --- /dev/null +++ b/dev-python/docutils/files/docutils-0.10-optparser.patch @@ -0,0 +1,34 @@ +Patch by Arfrever +http://sourceforge.net/tracker/?func=detail&aid=3598893&group_id=38414&atid=422030 + +Index: docutils/frontend.py +=================================================================== +--- docutils/frontend.py (revision 7578) ++++ docutils/frontend.py (working copy) +@@ -158,7 +158,7 @@ + + def validate_colon_separated_string_list( + setting, value, option_parser, config_parser=None, config_section=None): +- if isinstance(value, unicode): ++ if isinstance(value, basestring): + value = value.split(':') + else: + last = value.pop() +@@ -171,7 +171,7 @@ + """ + # `value` is already a list when given as command line option + # and "action" is "append" +- if isinstance(value, unicode): ++ if isinstance(value, basestring): + value = [value] + # this function is called for every option added to `value` + # -> split the last item and apped the result: +@@ -731,7 +731,7 @@ + """Wrapper around sys.stderr catching en-/decoding errors""" + + def read(self, filenames, option_parser): +- if type(filenames) in (str, unicode): ++ if isinstance(filenames, basestring): + filenames = [filenames] + for filename in filenames: + try: |