elif self._upctx is not None:
return getattr(self._upctx, name)
else:
- raise AttributeError, "'%s' object has no attribute '%s'" % (type(self), name)
+ raise AttributeError("'%s' object has no attribute '%s'" % (type(self), name))
def __setattr__(self, name, value):
try:
class XMLNamespace(object):
- '''A handy structure to repsent names in an XML namespace.'''
+ """A handy structure to repsent names in an XML namespace."""
def __init__(self, uri):
self.uri = uri