[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - widget.py:1.35

Jeremy Hylton jeremy@zope.com
Mon, 30 Jun 2003 18:44:44 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv15624/src/zope/app/browser/form

Modified Files:
	widget.py 
Log Message:
Remove unused local variables.


=== Zope3/src/zope/app/browser/form/widget.py 1.34 => 1.35 ===
--- Zope3/src/zope/app/browser/form/widget.py:1.34	Fri Jun  6 17:35:17 2003
+++ Zope3/src/zope/app/browser/form/widget.py	Mon Jun 30 18:44:13 2003
@@ -299,7 +299,6 @@
     def getData(self, optional=0):
         # When it's checked, its value is 'on'.
         # When a checkbox is unchecked, it does not appear in the form data.
-        field = self.context
         value = self.request.form.get(self.name, 'off')
         return value == 'on'
 
@@ -672,7 +671,7 @@
         try:
             seek = file.seek
             read = file.read
-        except AttributeError, e:
+        except AttributeError:
             return False
 
         seek(0)