Fix Python 3 compat issue in Config.get_namespace
This commit is contained in:
parent
0674ee875d
commit
ba80e1e33b
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue