summaryrefslogtreecommitdiff
path: root/paste/fixture.py
diff options
context:
space:
mode:
authorIan Bicking <ian@ianbicking.org>2005-11-14 02:57:29 +0000
committerIan Bicking <ian@ianbicking.org>2005-11-14 02:57:29 +0000
commit0d0df4222689dddedfb9bec4bb9c06b3cb09c239 (patch)
treecb69dc68dab7cf77751a6596f68fb1bd5d7c251c /paste/fixture.py
parent8a4b5c769e8d13baf9125c619f10cf30ac19cdc0 (diff)
downloadpaste-git-0d0df4222689dddedfb9bec4bb9c06b3cb09c239.tar.gz
Bunch of minor changes suggested by pyflakes
Diffstat (limited to 'paste/fixture.py')
-rw-r--r--paste/fixture.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/paste/fixture.py b/paste/fixture.py
index 41ad920..af694d8 100644
--- a/paste/fixture.py
+++ b/paste/fixture.py
@@ -845,7 +845,7 @@ class Form(object):
Get the named/indexed field object, or ``default`` if no field
is found.
"""
- fields = self.fields.get(namet)
+ fields = self.fields.get(name)
if fields is None and default is not NoDefault:
return default
if index is None:
@@ -930,7 +930,7 @@ class Field(object):
def value__set(self, value):
if not self.settable:
- raise Attribute("You cannot set the value")
+ raise AttributeError("You cannot set the value")
self._value = value
def value__get(self):
@@ -1369,7 +1369,7 @@ def make_pattern(pat):
if callable(pat):
return pat
assert 0, (
- "Cannot make callable pattern object out of %r" % path)
+ "Cannot make callable pattern object out of %r" % pat)
def setup_module(module=None):
"""