Cast configuration.Config.__dir__ to a list (not a PY3 dictkeys object)
This commit is contained in:
@@ -134,7 +134,7 @@ class Config(object):
|
|||||||
When using dir() returns a list of the values in the config. Note:
|
When using dir() returns a list of the values in the config. Note:
|
||||||
This function only works in Python2.6 or later.
|
This function only works in Python2.6 or later.
|
||||||
"""
|
"""
|
||||||
return self.__values__.keys()
|
return list(self.__values__.copy().keys())
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return 'Config(%s)' % str(self.__values__)
|
return 'Config(%s)' % str(self.__values__)
|
||||||
|
|||||||
Reference in New Issue
Block a user