Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/docutils/files: docutils-0.10-optparser.patch
Date: Mon, 31 Dec 2012 12:16:28
Message-Id: 20121231121619.26E8F2171E@flycatcher.gentoo.org
1 mgorny 12/12/31 12:16:19
2
3 Added: docutils-0.10-optparser.patch
4 Log:
5 Version bump with a patch for buildhtml.py. Move GLEP support to dev-python/docutils-glep.
6
7 (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 42B9401D)
8
9 Revision Changes Path
10 1.1 dev-python/docutils/files/docutils-0.10-optparser.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/docutils/files/docutils-0.10-optparser.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/docutils/files/docutils-0.10-optparser.patch?rev=1.1&content-type=text/plain
14
15 Index: docutils-0.10-optparser.patch
16 ===================================================================
17 Patch by Arfrever
18 http://sourceforge.net/tracker/?func=detail&aid=3598893&group_id=38414&atid=422030
19
20 Index: docutils/frontend.py
21 ===================================================================
22 --- docutils/frontend.py (revision 7578)
23 +++ docutils/frontend.py (working copy)
24 @@ -158,7 +158,7 @@
25
26 def validate_colon_separated_string_list(
27 setting, value, option_parser, config_parser=None, config_section=None):
28 - if isinstance(value, unicode):
29 + if isinstance(value, basestring):
30 value = value.split(':')
31 else:
32 last = value.pop()
33 @@ -171,7 +171,7 @@
34 """
35 # `value` is already a list when given as command line option
36 # and "action" is "append"
37 - if isinstance(value, unicode):
38 + if isinstance(value, basestring):
39 value = [value]
40 # this function is called for every option added to `value`
41 # -> split the last item and apped the result:
42 @@ -731,7 +731,7 @@
43 """Wrapper around sys.stderr catching en-/decoding errors"""
44
45 def read(self, filenames, option_parser):
46 - if type(filenames) in (str, unicode):
47 + if isinstance(filenames, basestring):
48 filenames = [filenames]
49 for filename in filenames:
50 try: