diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-04-24 17:18:43 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-04-24 17:18:43 +0200 |
| commit | 0d2eb441d867ab7c6543fdd69f2a632cd354b0a4 (patch) | |
| tree | b5af19d9f526145c4c8aea5e8b9628dfdd723907 /utils/migrate-0.8.py | |
| parent | 3c833358446a42f1b0e2f81bf23489f539c4b70f (diff) | |
| download | python-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-x | utils/migrate-0.8.py | 2 |
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) |
