summaryrefslogtreecommitdiff
path: root/utils/migrate-0.8.py
AgeCommit message (Collapse)AuthorFilesLines
2013-09-11Completely remove deprecated stuffJulian Andres Klode1-254/+0
2011-01-10merged lp:~geser/ubuntu/natty/python-apt/build-with-py3.2 (manually as bzr ↵Michael Vogt1-1/+1
thinks the branches have nothing in common)
2010-03-29do not require files to end in .py if they are passed on the commandJulian Andres Klode1-1/+4
line or if they contain python somewhere in the shebang line.
2010-03-29Don't abort if parsing failed.Julian Andres Klode1-1/+6
2010-03-29Add has_key to the list of deprecated functions.Julian Andres Klode1-1/+1
2010-03-29utils/migrate-0.8.py: Open files in universal newline support and pass ↵Julian Andres Klode1-1/+1
filename to ast.parse.
2010-02-27Ship the list of deprecated things in the apt_pkg and apt_inst modulesJulian Andres Klode1-55/+76
inside the script itself, so we don't have to parse the source code anymore.
2010-02-07* utils/migrate-0.8.py:Julian Andres Klode1-3/+5
- Improve C++ parsing and add apt.progress.old to the modules, reduces false positives.
2009-06-04utils/migrate-0.8.py: Handle constants in the apt_pkg extension.Julian Andres Klode1-0/+14
2009-06-03utils/migrate-0.8.py: Fix function detection.Julian Andres Klode1-1/+8
2009-04-24* utils/migrate-0.8.py: Add a warning that there may be false positives.Julian Andres Klode1-4/+5
2009-04-24* utils/migrate-0.8.py: Correctly import modules, improve attribute detectionJulian Andres Klode1-5/+7
In order to import modules from a package, 'fromlist' may not be empty. Therefore, we pass ['*'] now. When attributes where checked, we just checked their names and did not check their classes. This meant that in e.g. Compat-API: A.alpha, B.alpha Clean-API: A.alpha The attribute 'alpha' would not be considered deprecated because it is provided by A.alpha. Now we treat an 'alpha' attribute as deprecated, if at least one class loses it.
2009-04-24* utils/migrate-0.8.py: Fix detection of functions, methods and attributes.Julian Andres Klode1-1/+1
There was a problem in find_deprecated_cpp() which added '.' to the module-level functions. Caused by a missing 'not'.
2009-04-20* utils/migrate-0.8.py: Handle attributes specially, reduces false positives.Julian Andres Klode1-4/+9
We now prefix attributes with ., so we do not match global variable names when checking. This should reduce the number of false positives in some applications.
2009-04-20* utils/migrate-0.8.py: Helper to check Python code for deprecated ↵Julian Andres Klode1-0/+194
functions, attributes, etc. Has to be run from the python-apt source tree, but can be used for all Python code using python-apt. The output may not be completely correct, but false positives are better than not checking the code.