summaryrefslogtreecommitdiff
path: root/src/zope/i18n/locales/inheritance.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/zope/i18n/locales/inheritance.py')
-rw-r--r--src/zope/i18n/locales/inheritance.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/zope/i18n/locales/inheritance.py b/src/zope/i18n/locales/inheritance.py
index 912d8c9..e597b78 100644
--- a/src/zope/i18n/locales/inheritance.py
+++ b/src/zope/i18n/locales/inheritance.py
@@ -24,11 +24,13 @@ from zope.deprecation import deprecate
from zope.interface import implementer
from zope.i18n.interfaces.locales import \
- ILocaleInheritance, IAttributeInheritance, IDictionaryInheritance
+ ILocaleInheritance, IAttributeInheritance, IDictionaryInheritance
+
class NoParentException(AttributeError):
pass
+
@implementer(ILocaleInheritance)
class Inheritance(object):
"""A simple base version of locale inheritance.
@@ -37,7 +39,6 @@ class Inheritance(object):
'ILocaleInheritance' implementations.
"""
-
# See zope.i18n.interfaces.locales.ILocaleInheritance
__parent__ = None
@@ -100,7 +101,6 @@ class AttributeInheritance(Inheritance):
True
"""
-
def __setattr__(self, name, value):
"""See zope.i18n.interfaces.locales.ILocaleInheritance"""
# If we have a value that can also inherit data from other locales, we
@@ -111,7 +111,6 @@ class AttributeInheritance(Inheritance):
value.__name__ = name
super(AttributeInheritance, self).__setattr__(name, value)
-
def __getattr__(self, name):
"""See zope.i18n.interfaces.locales.ILocaleInheritance"""
try:
@@ -134,7 +133,6 @@ class AttributeInheritance(Inheritance):
return value
-
@implementer(IDictionaryInheritance)
class InheritingDictionary(Inheritance, dict):
"""Implementation of a dictionary that can also inherit values.
@@ -197,7 +195,6 @@ class InheritingDictionary(Inheritance, dict):
`value` is a deprecated synonym for `values`
"""
-
def __setitem__(self, name, value):
"""See zope.i18n.interfaces.locales.ILocaleInheritance"""
if ILocaleInheritance.providedBy(value):