Merge lp://qastaging/~cjwatson/command-not-found/python3 into lp://qastaging/~command-not-found-developers/command-not-found/trunk
Proposed by
Colin Watson
Status: | Merged |
---|---|
Merged at revision: | 153 |
Proposed branch: | lp://qastaging/~cjwatson/command-not-found/python3 |
Merge into: | lp://qastaging/~command-not-found-developers/command-not-found/trunk |
Diff against target: |
753 lines (+213/-165) 10 files modified
CommandNotFound/CommandNotFound.py (+58/-41) CommandNotFound/__init__.py (+3/-1) CommandNotFound/util.py (+17/-11) UnifiedDataExtractor/DebPackage.py (+21/-19) UnifiedDataExtractor/create-binary-database (+23/-18) UnifiedDataExtractor/diff-scan-data (+25/-20) UnifiedDataExtractor/scan (+32/-26) UnifiedDataExtractor/verify_scan_data.py (+24/-21) bash_command_not_found (+1/-1) command-not-found (+9/-7) |
To merge this branch: | bzr merge lp://qastaging/~cjwatson/command-not-found/python3 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zygmunt Krynicki | Approve | ||
Review via email: mp+110092@code.qastaging.launchpad.net |
Description of the change
Port to Python 3. This should all still run under Python 2 as well.
To post a comment you must log in.
47 + if key is not bytes:
I think you meant isinstance() here
74 - (PACKAGE, BASENAME_PATH) = range(2)
75 + (PACKAGE, BASENAME_PATH) = list(range(2))
299 - (SOFT, HARD) = range(2)
300 + (SOFT, HARD) = list(range(2))
(and some more), those changes seem unneeded, am I missing something?
Otherwise, wow, lots of old code that brings back memories, great work in porting that to python3! :)