diff options
author | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-15 12:11:37 +0100 |
---|---|---|
committer | Emile Anclin <emile.anclin@logilab.fr> | 2010-11-15 12:11:37 +0100 |
commit | 135b4141389138d95ad2c1a83a6a706f9758ceb6 (patch) | |
tree | 130bce997d5d6562db51f940f186f427b1779ee6 /configuration.py | |
parent | 2575a944af5839cf1bbafbdfe7f7f55478020014 (diff) | |
download | logilab-common-135b4141389138d95ad2c1a83a6a706f9758ceb6.tar.gz |
2to3 has some more usable fixers
Diffstat (limited to 'configuration.py')
-rw-r--r-- | configuration.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configuration.py b/configuration.py index 2de850f..54a0a65 100644 --- a/configuration.py +++ b/configuration.py @@ -815,13 +815,13 @@ class OptionsProviderMixIn(object): opt = self.option_name(opt, optdict) _list = getattr(self.config, opt, None) if _list is None: - if type(value) in (type(()), type([])): + if isinstance(value, (list, tuple)): _list = value elif value is not None: _list = [] _list.append(value) setattr(self.config, opt, _list) - elif type(_list) is type(()): + elif isinstance(_list, tuple): setattr(self.config, opt, _list + (value,)) else: _list.append(value) |