Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/happydoc/files: happydoc-3.1-python-2.6.patch
Date: Wed, 28 Jul 2010 23:02:30
Message-Id: 20100728221439.AEF622CE15@corvid.gentoo.org
1 arfrever 10/07/28 22:14:39
2
3 Added: happydoc-3.1-python-2.6.patch
4 Log:
5 Fix raising of exceptions for compatibility with Python 2.6.
6
7 (Portage version: HEAD/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 dev-python/happydoc/files/happydoc-3.1-python-2.6.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/happydoc/files/happydoc-3.1-python-2.6.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/happydoc/files/happydoc-3.1-python-2.6.patch?rev=1.1&content-type=text/plain
14
15 Index: happydoc-3.1-python-2.6.patch
16 ===================================================================
17 --- happydoclib/CommandLineApp.py
18 +++ happydoclib/CommandLineApp.py
19 @@ -102,10 +102,21 @@
20 #
21 # Exception names
22 #
23 - ReservedOptionName = 'Reserved option name'
24 - HelpRequested='Help requested'
25 - InvalidOptionValue='Invalid value for option'
26 - InvalidArgument='Invalid argument to program'
27 + class ReservedOptionName(ValueError):
28 + 'Reserved option name'
29 + pass
30 +
31 + class HelpRequested(ValueError):
32 + 'Help requested'
33 + pass
34 +
35 + class InvalidOptionValue(ValueError):
36 + 'Invalid value for option'
37 + pass
38 +
39 + class InvalidArgument(ValueError):
40 + 'Invalid argument to program'
41 + pass
42
43 #
44 # Globally useful configuration stuff.