summaryrefslogtreecommitdiff
path: root/paste/registry.py
diff options
context:
space:
mode:
authorpjenvey <devnull@localhost>2006-08-18 00:20:01 +0000
committerpjenvey <devnull@localhost>2006-08-18 00:20:01 +0000
commitfe432984501841f5b0a7ef9479a1f86f6f7bf36d (patch)
treed990628b0be471aaff1bcd08d5c8abeb339d100d /paste/registry.py
parentf6ea2b15b81eb3e5be21f155e45d81b865f3dc18 (diff)
downloadpaste-fe432984501841f5b0a7ef9479a1f86f6f7bf36d.tar.gz
exception message cleanup
Diffstat (limited to 'paste/registry.py')
-rw-r--r--paste/registry.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/paste/registry.py b/paste/registry.py
index 1487475..a34dbde 100644
--- a/paste/registry.py
+++ b/paste/registry.py
@@ -176,8 +176,8 @@ class StackedObjectProxy(object):
return object
else:
raise TypeError(
- "No object (Name: %s) has been registered for this \
- thread" % self.__dict__['_name'])
+ 'No object (name: %s) has been registered for this '
+ 'thread' % self.__dict__['_name'])
def push_object(self, obj):
"""
@@ -221,14 +221,13 @@ class StackedObjectProxy(object):
"""
if not hasattr(self.local, 'objects'):
- raise AssertionError("No object has been registered for this thread.")
+ raise AssertionError('No object has been registered for this thread')
popped = self.local.objects.pop()
if obj:
if popped is not obj:
raise AssertionError(
- "The object popped (%s) is not the same as the object "
- "expected (%s)"
- % (popped, obj))
+ 'The object popped (%s) is not the same as the object '
+ 'expected (%s)' % (popped, obj))
class Registry(object):
"""Track objects and stacked object proxies for removal