From 0d2b454b6e86d7aff68f5e4ce9e9bc1b73420a1c Mon Sep 17 00:00:00 2001 From: fonfon Date: Tue, 9 Dec 2014 23:38:16 +0100 Subject: [PATCH] os.path.commonprefix is suitable for any strings --- plinth/templatetags/plinth_extras.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plinth/templatetags/plinth_extras.py b/plinth/templatetags/plinth_extras.py index 4b8c35af6..2ccef470b 100644 --- a/plinth/templatetags/plinth_extras.py +++ b/plinth/templatetags/plinth_extras.py @@ -41,7 +41,6 @@ def mark_active_menuitem(menu, path): urlitem['active'] = False if not path.startswith(str(urlitem['url'])): continue - # TODO: use a more suitable function instead of os.path.commonprefix match = os.path.commonprefix([urlitem['url'], path]) if len(match) > len(best_match):