提交 32fb7f1c authored 作者: Frédéric Bastien's avatar Frédéric Bastien 提交者: GitHub

Merge pull request #4965 from superantichrist/patch-1

_name_for_ctx do not iter for loop enough
...@@ -82,7 +82,7 @@ def _name_for_ctx(ctx): ...@@ -82,7 +82,7 @@ def _name_for_ctx(ctx):
for k, v in iteritems(_context_reg): for k, v in iteritems(_context_reg):
if v == ctx: if v == ctx:
return k return k
raise ContextNotDefined('context is not registered') raise ContextNotDefined('context is not registered')
# This is a private method for use by the tests only # This is a private method for use by the tests only
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论