api_client.py 文件源码

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

项目:jupyterhub-kubernetes_spawner 作者: danielfrg 项目源码 文件源码
def __deserialize_date(self, string):
        """
        Deserializes string to date.

        :param string: str.
        :return: date.
        """
        try:
            from dateutil.parser import parse
            return parse(string).date()
        except ImportError:
            return string
        except ValueError:
            raise ApiException(
                status=0,
                reason="Failed to parse `{0}` into a date object"
                .format(string)
            )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号