Commit graph

6 commits

Author SHA1 Message Date
Emil Stenström
b2726a6832 Contain all registry logic in helper methods. 2020-06-06 09:07:23 +02:00
Emil Stenström
40ebd6b936 Install isort and fix all imports. 2019-11-24 11:09:14 +01:00
Ryan Hiebert
f219370be2 Use dictionary to compare registry
The registry is a dictionary, so comparing items() has a couple of
problems:

1. The order of a dictionary is unstable, so it may not turn out as
   expected.
2. items() returns a list in Python 2, but a dict_items in Python 3,
   which makes the comparison fail.
2015-06-13 13:42:27 -05:00
Emil Stenström
ebf4ac1d20 Add way to unregister components. 2015-06-11 20:52:46 +02:00
Emil Stenström
00bd40aaaf Don't allow registering the same component twice. 2015-06-11 20:47:35 +02:00
Emil Stenström
313852ce21 A simple ComponentRegistry to store components. 2015-06-11 20:42:16 +02:00