Submitter | Pulkit Goyal |
---|---|
Date | Feb. 23, 2018, 6:15 p.m. |
Message ID | <c8124f3591d41903f701.1519409723@workspace> |
Download | mbox | patch |
Permalink | /patch/28287/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/fancyopts.py b/mercurial/fancyopts.py --- a/mercurial/fancyopts.py +++ b/mercurial/fancyopts.py @@ -9,7 +9,6 @@ from __future__ import absolute_import import abc import functools -import types from .i18n import _ from . import ( @@ -222,7 +221,7 @@ class customopt(object): 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