We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab4f708 commit 2cce443Copy full SHA for 2cce443
1 file changed
dash/development/component_generator.py
@@ -146,11 +146,13 @@ def cli():
146
# pylint: disable=undefined-variable
147
def byteify(input_object):
148
if isinstance(input_object, dict):
149
- return {byteify(key): byteify(value)
150
- for key, value in input_object.iteritems()}
+ return OrderedDict([
+ (byteify(key), byteify(value))
151
+ for key, value in input_object.iteritems()
152
+ ])
153
elif isinstance(input_object, list):
154
return [byteify(element) for element in input_object]
- elif isinstance(input_object, unicode): # noqa:F821
155
+ elif isinstance(input_object, unicode): # noqa:F821
156
return input_object.encode('utf-8')
157
return input_object
158
0 commit comments