File: py37_compat.patch

package info (click to toggle)
pysoundfile 0.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 284 kB
  • sloc: python: 1,773; makefile: 156; sh: 21
file content (19 lines) | stat: -rw-r--r-- 507 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: fixed imports for python3.7
Author: IOhannes m zmölnig
Origin: Debian
Last-Update: 2018-12-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- pysoundfile.orig/doc/fake__soundfile.py
+++ pysoundfile/doc/fake__soundfile.py
@@ -1,6 +1,10 @@
 """Mock module for Sphinx autodoc."""
 
 import ctypes
+try:
+    import ctypes.util
+except Exception:
+    pass
 
 # Monkey-patch ctypes to disable searching for libsndfile
 ctypes.util.find_library = lambda _: NotImplemented