Package: python3-dvdvideo
Version: 0.20140413
Severity: wishlist

Dear Maintainer,
I find this package useful and wrote a small patch to backport it to Debian 
Wheezy. I attach it here, so other people might profit from it. Would it be 
much of a nuisance to upload the patched package to Debian Backports?

Thanks a lot for the good work,

Antonio


-- System Information:
Debian Release: 7.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-0.bpo.4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python3-dvdvideo depends on:
ii  python3  3.2.3-6

python3-dvdvideo recommends no packages.

python3-dvdvideo suggests no packages.

-- no debconf information
Fixes Python3 import error on Debian Wheezy
--- a/dvdvideo/media.py
+++ b/dvdvideo/media.py
@@ -14,14 +14,17 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-import collections.abc
+try:
+    from collections.abc import Mapping
+except ImportError:
+    from collections import Mapping
 import os
 import stat
 
 from .volume import VmgUdf, VtsUdf
 
 
-class MediaUdf(collections.abc.Mapping):
+class MediaUdf(Mapping):
     class File:
         def __init__(self, filename):
             f = open(filename, 'rb')

Reply via email to