Quote:
Originally Posted by chaley
This fixes it by changing lstrip() to a slice, removing N characters from the beginning where N is the length of the outer user category name passed to the function (user_cat_prefix). As a side benefit it will be a bit faster.
|
I overlooked this, Thanks for the fix. I am thinking about going with re.sub() in case the user enters a wrong prefix. It will be slower though.