routing.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:isni-reconcile 作者: cmh2166 项目源码 文件源码
def bind(self, map, rebind=False):
        """Bind the url to a map and create a regular expression based on
        the information from the rule itself and the defaults from the map.

        :internal:
        """
        if self.map is not None and not rebind:
            raise RuntimeError('url rule %r already bound to map %r' %
                               (self, self.map))
        self.map = map
        if self.strict_slashes is None:
            self.strict_slashes = map.strict_slashes
        if self.subdomain is None:
            self.subdomain = map.default_subdomain
        self.compile()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号