changeset 36383 | 24b481668293 |
parent 36353 | cc9d0763c8e9 |
child 37092 | ef6215df2402 |
--- a/mercurial/fancyopts.py Fri Feb 23 18:12:20 2018 +0530 +++ b/mercurial/fancyopts.py Fri Feb 23 18:23:51 2018 +0530 @@ -9,7 +9,6 @@ import abc import functools -import types from .i18n import _ from . import ( @@ -222,7 +221,7 @@ class _simpleopt(customopt): def _isboolopt(self): - return isinstance(self.defaultvalue, (bool, types.NoneType)) + return isinstance(self.defaultvalue, (bool, type(None))) def newstate(self, oldstate, newparam, abort): return newparam