def update_user(cls, user):
"""
Creates a new User object with current methods and attributes and fills in the new users attributes with
attributes from the old user object.
:param user: The User object which is to be updated.
:type user: User
"""
new_user = User(__version__, user.name, user.save_path, user.post_limit, user.avoid_duplicates,
user.download_videos, user.download_images, user.name_downloads_by, user.user_added)
cls.update_extras(user, new_user)
return new_user
ObjectUpdater.py 文件源码
python
阅读 17
收藏 0
点赞 0
评论 0
评论列表
文章目录