Package: python3-sphinxcontrib.youtube
Version: 1.0-1
Severity: important
Tags: patch
Dear Maintainer,
Using the python3 version of sphinxcontrib.youtube fails with the following
error when building the sphinx project:
Exception occurred:
File "/usr/lib/python3/dist-packages/sphinxcontrib/youtube.py", line 22, in
css
return "; ".join(sorted("%s: %s" % kv for kv in d.iteritems()))
AttributeError: 'dict' object has no attribute 'iteritems'
iteritems() was removed in Python 3 and is to be replaced with items()
The following change in /usr/lib/python3/dist-packages/sphinxcontrib/youtube.py
fixes the problem:
22c22
< return "; ".join(sorted("%s: %s" % kv for kv in d.iteritems()))
---
> return "; ".join(sorted("%s: %s" % kv for kv in d.items()))
Torsti
-- System Information:
Debian Release: 8.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (100, 'testing'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages python3-sphinxcontrib.youtube depends on:
ii python3-sphinx 1.2.3+dfsg-1
pn python3:any <none>
python3-sphinxcontrib.youtube recommends no packages.
python3-sphinxcontrib.youtube suggests no packages.
22c22
< return "; ".join(sorted("%s: %s" % kv for kv in d.iteritems()))
---
> return "; ".join(sorted("%s: %s" % kv for kv in d.items()))