Cast configuration.Config.__dir__ to a list (not a PY3 dictkeys object)

This commit is contained in:
Ryan Petrello
2013-04-30 16:52:24 -04:00
parent b6b2dce997
commit fd36c63df0

View File

@@ -134,7 +134,7 @@ class Config(object):
When using dir() returns a list of the values in the config. Note:
This function only works in Python2.6 or later.
"""
return self.__values__.keys()
return list(self.__values__.copy().keys())
def __repr__(self):
return 'Config(%s)' % str(self.__values__)