checkbox-support has a number of probably obsolete path functions
Bug #1320824 reported by
Zygmunt Krynicki
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Checkbox Support Library |
Fix Released
|
Low
|
Sylvain Pineau |
Bug Description
Looking at checkbox_
path_common(l1, l2, common=[])
path_expand(path)
path_expand_
path_relative(p1, p2)
path_split(path)
Those should be probably removed and any code calling them migrated to os.path
Related branches
~sylvain-pineau/checkbox-support:cleanup_duplicates
- Maciej Kisielewski: Approve
-
Diff: 540 lines (+300/-151)2 files modifiedcheckbox_support/bt_helper.py (+300/-0)
dev/null (+0/-151)
affects: | plainbox → checkbox-support |
Changed in checkbox-support: | |
assignee: | nobody → Sylvain Pineau (sylvain-pineau) |
milestone: | none → 0.35.0 |
status: | Triaged → In Progress |
Changed in checkbox-support: | |
status: | In Progress → Fix Committed |
Changed in checkbox-support: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
path_common() is only used by path.py itself
./checkbox- support/ checkbox_ support/ lib/path. py:def path_common(l1, l2, common=[]): support/ checkbox_ support/ lib/path. py: return path_common(l1[1:], l2[1:], common + [l1[0]]) support/ checkbox_ support/ lib/path. py: (common, l1, l2) = path_common( path_split( p1), path_split(p2))
./checkbox-
./checkbox-
path_expand() is again used by path.py itself
./checkbox_ support/ lib/path. py:def path_expand(path): support/ lib/path. py:def path_expand_ recursive( path): support/ lib/path. py: for path in path_expand(path):
./checkbox_
./checkbox_
path_expand_ recursive( ) is used by filter_templates
./providers/ plainbox- provider- checkbox/ bin/filter_ templates: from checkbox_ support. lib.path import path_expand_ recursive plainbox- provider- checkbox/ bin/filter_ templates: for filename in path_expand_ recursive( path): support/ checkbox_ support/ lib/path. py:def path_expand_ recursive( path):
./providers/
./checkbox-
./checkbox_ support/ lib/path. py:def path_expand_ recursive( path):
path_relative() not used by anything in lp:checkbox (can be removed)
./checkbox- support/ checkbox_ support/ lib/path. py:def path_relative(p1, p2):
path_split() is used by path.py itself
./checkbox- support/ checkbox_ support/ lib/path. py:def path_split(path): support/ checkbox_ support/ lib/path. py: (common, l1, l2) = path_common( path_split( p1), path_split(p2))
./checkbox-