Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Lalisse committed Nov 7, 2022
1 parent 80e5561 commit 80472ac
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/ryzom/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,8 @@ def __getattr__(self, name):
def __init__(self, *content, **attrs):
cls = type(self)
self.content = list(content) or []
self.content += getattr(attrs, 'children', [])
self.content += attrs.pop('children') or []

if 'children' in attrs:
attrs.pop('children')

for key in [*attrs.keys()]:
value = attrs[key]
if not hasattr(value, 'to_html'):
Expand Down Expand Up @@ -293,9 +290,6 @@ def __init__(self, *content, **attrs):
if 'style' in class_attrs:
class_attrs.pop('style')

if 'content' in class_attrs:
class_attrs.pop('content')

# create an instance attribute from the class attribute
self.__dict__['attrs'] = class_attrs

Expand Down

0 comments on commit 80472ac

Please sign in to comment.