fix bug in factory

This commit is contained in:
Martin Baeuml
2014-03-19 22:35:59 +01:00
parent 9b3ba3cb9f
commit bcd5415b0a
+1 -1
View File
@@ -52,10 +52,10 @@ class Factory:
Type for which the mapping should be removed. If None, all
mappings will be removed.
"""
_type = str(_type)
if _type is None:
self._items = {}
else:
_type = str(_type)
if _type in self._items:
del self._items[_type]