Code Repositories xandikos / e7d5fd3
Use Index.iterobjects rather than deprecated Index.iterblobs. Jelmer Vernooń≥ 11 months ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3737 author_email="jelmer@jelmer.uk",
3838 license="GNU GPLv3 or later",
3939 url="https://www.xandikos.org/",
40 install_requires=['icalendar', 'dulwich', 'defusedxml', 'jinja2'],
40 install_requires=['icalendar', 'dulwich>=0.19.1', 'defusedxml', 'jinja2'],
4141 packages=find_packages(),
4242 package_data={'xandikos': ['templates/*.html']},
4343 scripts=['bin/xandikos'],
621621 yield (name, mode, sha)
622622 else:
623623 index = self.repo.open_index()
624 for (name, sha, mode) in index.iterblobs():
624 for (name, sha, mode) in index.iterobjects():
625625 name = name.decode(DEFAULT_ENCODING)
626626 yield (name, mode, sha)
627627