Do not use lstrip(), just use list slicing instead. --- command-stubs/list-harddrives-stub | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/command-stubs/list-harddrives-stub b/command-stubs/list-harddrives-stub index 25d9eb0..ee9efa8 100755 --- a/command-stubs/list-harddrives-stub +++ b/command-stubs/list-harddrives-stub @@ -27,8 +27,7 @@ def main(argv): lst = set() for dev in filter(lambda d: d.type != parted.DEVICE_DM, parted.getAllDevices()): - path = dev.path.lstrip("/dev/") - lst.add((path, dev.getSize())) + lst.add((dev.path[5:], dev.getSize())) lst = list(lst) lst.sort() -- 1.7.1 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list