mirror of
https://github.com/django-components/django-components.git
synced 2025-10-12 15:02:00 +00:00
Reformat lines that became too long. And enforce 119 line length.
This commit is contained in:
parent
ef6a082238
commit
48fe8171b4
25 changed files with 314 additions and 733 deletions
|
@ -12,13 +12,8 @@ class ComponentRegistry(object):
|
|||
|
||||
def register(self, name=None, component=None):
|
||||
existing_component = self._registry.get(name)
|
||||
if (
|
||||
existing_component
|
||||
and existing_component.class_hash != component.class_hash
|
||||
):
|
||||
raise AlreadyRegistered(
|
||||
'The component "%s" has already been registered' % name
|
||||
)
|
||||
if existing_component and existing_component.class_hash != component.class_hash:
|
||||
raise AlreadyRegistered('The component "%s" has already been registered' % name)
|
||||
self._registry[name] = component
|
||||
|
||||
def unregister(self, name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue