Show More
@@ -9,7 +9,6 from __future__ import absolute_import | |||||
9 |
|
9 | |||
10 | import abc |
|
10 | import abc | |
11 | import functools |
|
11 | import functools | |
12 | import types |
|
|||
13 |
|
12 | |||
14 | from .i18n import _ |
|
13 | from .i18n import _ | |
15 | from . import ( |
|
14 | from . import ( | |
@@ -222,7 +221,7 class customopt(object): | |||||
222 |
|
221 | |||
223 | class _simpleopt(customopt): |
|
222 | class _simpleopt(customopt): | |
224 | def _isboolopt(self): |
|
223 | def _isboolopt(self): | |
225 |
return isinstance(self.defaultvalue, (bool, type |
|
224 | return isinstance(self.defaultvalue, (bool, type(None))) | |
226 |
|
225 | |||
227 | def newstate(self, oldstate, newparam, abort): |
|
226 | def newstate(self, oldstate, newparam, abort): | |
228 | return newparam |
|
227 | return newparam |
General Comments 0
You need to be logged in to leave comments.
Login now