diff options
author | Ryan Petrello <lists@ryanpetrello.com> | 2013-04-30 16:52:24 -0400 |
---|---|---|
committer | Ryan Petrello <lists@ryanpetrello.com> | 2013-04-30 16:52:24 -0400 |
commit | fd36c63df008a8e1ebfdfb183e0525db679e74dd (patch) | |
tree | 43063ce8de020b6d281c63ae9a4fb55df059cb1e | |
parent | b6b2dce997c12211f00ff622d14c994f86106ad3 (diff) | |
download | pecan-fd36c63df008a8e1ebfdfb183e0525db679e74dd.tar.gz |
Cast configuration.Config.__dir__ to a list (not a PY3 dictkeys object)
-rw-r--r-- | pecan/configuration.py | 2 |
1 files changed, 1 insertions, 1 deletions
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__) |