summaryrefslogtreecommitdiffstats
path: root/contrib/python/traitlets
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/python/traitlets')
-rw-r--r--contrib/python/traitlets/py2/traitlets/traitlets.py8
-rw-r--r--contrib/python/traitlets/py3/traitlets/traitlets.py8
2 files changed, 8 insertions, 8 deletions
diff --git a/contrib/python/traitlets/py2/traitlets/traitlets.py b/contrib/python/traitlets/py2/traitlets/traitlets.py
index c60dabe0db4..c07daf7400d 100644
--- a/contrib/python/traitlets/py2/traitlets/traitlets.py
+++ b/contrib/python/traitlets/py2/traitlets/traitlets.py
@@ -416,8 +416,8 @@ class TraitType(BaseDescriptor):
read_only = False
info_text = 'any value'
- def __init__(self, default_value=Undefined, allow_none=False, read_only=None, help=None,
- config=None, **kwargs):
+ def __init__(self, default_value=Undefined, allow_none=False, read_only=None, help=None,
+ config=None, **kwargs):
"""Declare a traitlet.
If *allow_none* is True, None is a valid value in addition to any
@@ -457,8 +457,8 @@ class TraitType(BaseDescriptor):
self.metadata = kwargs
else:
self.metadata = self.metadata.copy()
- if config is not None:
- self.metadata['config'] = config
+ if config is not None:
+ self.metadata['config'] = config
# We add help to the metadata during a deprecation period so that
# code that looks for the help string there can find it.
diff --git a/contrib/python/traitlets/py3/traitlets/traitlets.py b/contrib/python/traitlets/py3/traitlets/traitlets.py
index f85dce335f7..6bdf7414d36 100644
--- a/contrib/python/traitlets/py3/traitlets/traitlets.py
+++ b/contrib/python/traitlets/py3/traitlets/traitlets.py
@@ -432,8 +432,8 @@ class TraitType(BaseDescriptor):
info_text = 'any value'
default_value = Undefined
- def __init__(self, default_value=Undefined, allow_none=False, read_only=None, help=None,
- config=None, **kwargs):
+ def __init__(self, default_value=Undefined, allow_none=False, read_only=None, help=None,
+ config=None, **kwargs):
"""Declare a traitlet.
If *allow_none* is True, None is a valid value in addition to any
@@ -475,8 +475,8 @@ class TraitType(BaseDescriptor):
self.metadata = kwargs
else:
self.metadata = self.metadata.copy()
- if config is not None:
- self.metadata['config'] = config
+ if config is not None:
+ self.metadata['config'] = config
# We add help to the metadata during a deprecation period so that
# code that looks for the help string there can find it.