Debian Codegraph @

debian/patches/python-disable-imports.patch

raw
1 From 80c99317f1bfb4333757cad0819924f83f62b24e Mon Sep 17 00:00:00 2001
2 From: Barry Warsaw <[email protected]>
3 Date: Sat, 15 Feb 2014 22:47:01 +0000
4 Subject: python: Disable import parsing by default
5
6 Parsing imports mixes up imports with actual class definitions. If you need
7 to re-enable this, use the --python-kinds=+i option.
8
9 Bug: http://sourceforge.net/tracker/?func=detail&aid=2829739&group_id=6556&atid=106556
10 Bug-Ubuntu: https://bugs.launchpad.net/bugs/618979
11 Reviewed-by: Colin Watson <[email protected]>
12 Forwarded: no
13 Last-Update: 2010-08-17
14
15 Patch-Name: python-disable-imports.patch
16 ---
17 python.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
19
20 diff --git a/python.c b/python.c
21 index a90d072b3..bf797de7c 100644
22 --- a/python.c
23 +++ b/python.c
24 @@ -56,7 +56,7 @@ static kindOption PythonKinds[] = {
25 {TRUE, 'f', "function", "functions"},
26 {TRUE, 'm', "member", "class members"},
27 {TRUE, 'v', "variable", "variables"},
28 - {TRUE, 'i', "namespace", "imports"}
29 + {FALSE, 'i', "namespace", "imports"}
30 };
31
32 static char const * const singletriple = "'''";