Browse Source

Fix Python 3 compat issue in Config.get_namespace

pull/1003/head
Daniel Neuhäuser 11 years ago
parent
commit
ba80e1e33b
  1. 4
      flask/config.py

4
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):]

Loading…
Cancel
Save