changeset 42:6ea806412fd1

fix makedir -> mkdir
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 01 Mar 2012 10:46:16 -0800
parents c934505fa098
children 089d5650d7e2
files simpypi/wsgi.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/simpypi/wsgi.py	Thu Mar 01 10:43:28 2012 -0800
+++ b/simpypi/wsgi.py	Thu Mar 01 10:46:16 2012 -0800
@@ -76,7 +76,7 @@
 
             # put the package in the right place
             self.add_package(sdist)
-        except:
+        except BaseException, e:
             # something bad happen
             response = exc.HTTPBadRequest()
         finally:
@@ -95,7 +95,7 @@
         # make a directory for the package
         directory = os.path.join(self.directory, sdist.name)
         if not os.path.exists(directory):
-            os.makedir(directory)
+            os.mkdir(directory)
         assert os.path.isdir(directory)
 
         # determine the extension (XXX hacky)