From 0211c8c5ea122419203d651b439e7809517582e2 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Sat, 4 Aug 2018 21:01:49 +0200 Subject: CMSPageIdent: Optimize add Signed-off-by: Michael Buesch --- cms/cms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/cms.py b/cms/cms.py index fea89cc..3bd12b3 100644 --- a/cms/cms.py +++ b/cms/cms.py @@ -242,7 +242,7 @@ class CMSPageIdent(object): # Create a new page identifier from 'self' and add 'other'. def __add__(self, other): - return self.__class__(self.__elements).extend(other) + return self.__class__(self).extend(other) # Get the number of path components in this path identifier. def __len__(self): -- cgit v1.2.3