[Pypi-checkins] r850 - trunk/pypi

richard python-checkins at python.org
Wed Aug 11 03:08:33 CEST 2010


Author: richard
Date: Wed Aug 11 03:08:33 2010
New Revision: 850

Modified:
   trunk/pypi/webui.py
Log:
version may be None, ugh

Modified: trunk/pypi/webui.py
==============================================================================
--- trunk/pypi/webui.py	(original)
+++ trunk/pypi/webui.py	Wed Aug 11 03:08:33 2010
@@ -985,7 +985,7 @@
             except KeyError:
                 raise NotFound, 'no package name supplied'
         if version is None:
-            if self.form.has_key('version'):
+            if self.form.get('version'):
                 version = self.form['version']
             else:
                 l = self.store.get_latest_release(name, hidden=False)


More information about the Pypi-checkins mailing list