Take the str() of the option passed to the callback so it can be compared usefully...
authorJason Stubbs <jstubbs@gentoo.org>
Fri, 14 Oct 2005 12:12:44 +0000 (12:12 -0000)
committerJason Stubbs <jstubbs@gentoo.org>
Fri, 14 Oct 2005 12:12:44 +0000 (12:12 -0000)
svn path=/main/branches/2.0/; revision=2130

bin/emaint

index 3fdd03f248813a7a679697ac70a8dfeaf1bbe7a1..7f991d9b0bfe1128ab4067683396b4f4897eaf49 100755 (executable)
@@ -62,7 +62,7 @@ def exclusive(option, unused1, unused2, unused3, var=None):
                raise ValueError("var not specified to exclusive()")
        if getattr(parser, var, ""):
                raise OptionValueError("%s and %s are exclusive options" % (getattr(parser, var), value))
-       setattr(parser, var, option)
+       setattr(parser, var, str(option))
 
 
 usage = "usage: emaint [options] " + " | ".join(module_names)