Skip to content
Unverified Commit 06890452 authored by Paul Wise's avatar Paul Wise
Browse files

Python 3: use items() instead of iteritems()

iteritems was removed in Python 3 because items returns a view object.

Traceback (most recent call last):
  File "../../bin/compare-source-package-list", line 1163, in <module>
    files, patches, links, new = process_sources(source_entries, lists_dir)
  File "../../bin/compare-source-package-list", line 1141, in process_sources
    actions = check_source_package(source_entry, srcpkg)
  File "../../bin/compare-source-package-list", line 1019, in check_source_package
    info = get_info(srcpkg)
  File "../../bin/compare-source-package-list", line 484, in get_info
    dsc_hash_type, dsc_hash =  [(k, v) for k, v in dsc.iteritems() if k not in ('name', 'size')][0]
AttributeError: 'Deb822Dict' object has no attribute 'iteritems'
parent 8a9f375b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment