diff --git a/flask/config.py b/flask/config.py index cb1c9bb8..164a04ba 100644 --- a/flask/config.py +++ b/flask/config.py @@ -14,7 +14,7 @@ import os import errno from werkzeug.utils import import_string -from ._compat import string_types +from ._compat import string_types, iteritems from . import json @@ -218,7 +218,7 @@ class Config(dict): dictionary should be lowercase """ rv = {} - for k, v in self.iteritems(): + for k, v in iteritems(self): if not k.startswith(namespace): continue key = k[len(namespace):]