summaryrefslogtreecommitdiff
path: root/utils/migrate-0.8.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-04-24 17:18:43 +0200
committerJulian Andres Klode <jak@debian.org>2009-04-24 17:18:43 +0200
commit0d2eb441d867ab7c6543fdd69f2a632cd354b0a4 (patch)
treeb5af19d9f526145c4c8aea5e8b9628dfdd723907 /utils/migrate-0.8.py
parent3c833358446a42f1b0e2f81bf23489f539c4b70f (diff)
downloadpython-apt-0d2eb441d867ab7c6543fdd69f2a632cd354b0a4.tar.gz
* utils/migrate-0.8.py: Fix detection of functions, methods and attributes.
There was a problem in find_deprecated_cpp() which added '.' to the module-level functions. Caused by a missing 'not'.
Diffstat (limited to 'utils/migrate-0.8.py')
-rwxr-xr-xutils/migrate-0.8.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/migrate-0.8.py b/utils/migrate-0.8.py
index 32fc58a3..be74cc2f 100755
--- a/utils/migrate-0.8.py
+++ b/utils/migrate-0.8.py
@@ -88,7 +88,7 @@ def find_deprecated_cpp():
line = lines.pop(0)
while lines and not '#endif' in line:
name = line.split(",")[0].strip().strip('{"')
- if 'module' in fname:
+ if not 'module' in fname:
name = '.' + name
all_old.add(name)
line = lines.pop(0)