BR()+BR()
This commit is contained in:
1 parent
33ed6dd806
commit
8120f75ace
2 files changed
+11
-1
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-07-26 17:42:17) dev
|
Version 2.00.0 (2012-07-26 17:53:32) dev
|
||||||
@@ -474,6 +474,16 @@ class XmlComponent(object):
|
|||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
def __mul__(self,n):
|
def __mul__(self,n):
|
||||||
return CAT(*[self for i in range(n)])
|
return CAT(*[self for i in range(n)])
|
||||||
|
def __add__(self,other):
|
||||||
|
if isinstance(self,CAT):
|
||||||
|
components = self.components
|
||||||
|
else:
|
||||||
|
components = [self]
|
||||||
|
if isinstance(other,CAT):
|
||||||
|
components += other.components
|
||||||
|
else:
|
||||||
|
components += [other]
|
||||||
|
return CAT(*components)
|
||||||
|
|
||||||
class XML(XmlComponent):
|
class XML(XmlComponent):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in new issue
Block a user