Skip to content
Myr

Fix Python 3 compat issue in Config.get_namespace

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Neuhäuser · committed by Daniel Neuhäuser · parent 0674ee8 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:flask/config.py+2 added-2 removed
12 unmodified lines
13import os14import errno1516from werkzeug.utils import import_string17from ._compat import string_types17from ._compat import string_types, iteritems18from . import json192021class ConfigAttribute(object):
195 unmodified lines
217 :param lowercase: a flag indicating if the keys of the resulting218 dictionary should be lowercase219 """220 rv = {}221 for k, v in self.iteritems():221 for k, v in iteritems(self):222 if not k.startswith(namespace):223 continue224 key = k[len(namespace):]225 if lowercase:
6 unmodified lines