summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Petrello <lists@ryanpetrello.com>2013-04-30 16:52:24 -0400
committerRyan Petrello <lists@ryanpetrello.com>2013-04-30 16:52:24 -0400
commitfd36c63df008a8e1ebfdfb183e0525db679e74dd (patch)
tree43063ce8de020b6d281c63ae9a4fb55df059cb1e
parentb6b2dce997c12211f00ff622d14c994f86106ad3 (diff)
downloadpecan-fd36c63df008a8e1ebfdfb183e0525db679e74dd.tar.gz
Cast configuration.Config.__dir__ to a list (not a PY3 dictkeys object)
-rw-r--r--pecan/configuration.py2
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__)