aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2018-08-04 21:01:49 +0200
committerMichael Buesch <m@bues.ch>2018-08-04 21:01:49 +0200
commit0211c8c5ea122419203d651b439e7809517582e2 (patch)
treee244b67665fbaa7f2d16f6192015c12231ea3b2f
parentd11eeeb2948dd39a2d7af35f084f25ef9c25de1b (diff)
downloadcms-0211c8c5ea122419203d651b439e7809517582e2.zip
cms-0211c8c5ea122419203d651b439e7809517582e2.tar.xz
CMSPageIdent: Optimize add
Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--cms/cms.py2
1 files changed, 1 insertions, 1 deletions
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):
bues.ch cgit interface