def update_quota(self, quota_info, error=None):
if not quota_info or quota_info['<STR_LIT>'] != <NUM_LIT:0>:<EOL><INDENT>return<EOL><DEDENT>used = quota_info['<STR_LIT>']<EOL>total = quota_info['<STR_LIT>']<EOL>used_size = util.get_human_size(used)[<NUM_LIT:0>]<EOL>total_size = util.get_human_size(total)[<NUM_LIT:0>]<EOL>self.capicity_label.set_text('<STR_LIT>'.format(used_size, total_size))<EOL>self.progressbar.set_fraction(used / total)<EOL>
更新网盘容量信息