File: util3_pycompile.diff

package info (click to toggle)
python-couchdb 0.10-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 508 kB
  • ctags: 673
  • sloc: python: 3,763; makefile: 35
file content (26 lines) | stat: -rw-r--r-- 1,024 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Disable pyexec in util3.py to avoid pycompile issue
 couchdb/util3.py is not used with python (only python3, which is not
 currently supported by the package), but is still executed by pycompile.
 Pycompile will attempt to compile all files in the directory on install and
 the python3 only syntax used in util3.py causes it to fail.  Commenting out
 the pyexec works around the issue and has no effect since python3 isn't
 supported.
 In the long run, this should be fixed properly, but this is a reasonable
Author: Michael Vogt <mvo@debian.org>
Bug-Debian: http://bugs.debian.org/765086
Origin: vendor
Forwarded: no
Reviewed-By: Scott Kitterman <scott@kitterman.com>
Last-Update: 2014-11-13

--- python-couchdb-0.10.orig/couchdb/util3.py
+++ python-couchdb-0.10/couchdb/util3.py
@@ -14,7 +14,7 @@ from urllib.parse import urlsplit, urlun
 from urllib.parse import quote as urlquote
 from urllib.parse import unquote as urlunquote
 
-pyexec = exec
+#pyexec = exec
 
 def funcode(fun):
     return fun.__code__