From fd36c63df008a8e1ebfdfb183e0525db679e74dd Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Tue, 30 Apr 2013 16:52:24 -0400 Subject: [PATCH] Cast configuration.Config.__dir__ to a list (not a PY3 dictkeys object) --- pecan/configuration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pecan/configuration.py b/pecan/configuration.py index 616d1c6..0e7ffc0 100644 --- a/pecan/configuration.py +++ b/pecan/configuration.py @@ -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__)