[Pypi-checkins] r817 - trunk/pypi

richard python-checkins at python.org
Sun Jul 25 09:15:12 CEST 2010


Author: richard
Date: Sun Jul 25 09:15:12 2010
New Revision: 817

Modified:
   trunk/pypi/webui.py
Log:
utf8 encode for filesystem (assuming this is correct)

Modified: trunk/pypi/webui.py
==============================================================================
--- trunk/pypi/webui.py	(original)
+++ trunk/pypi/webui.py	Sun Jul 25 09:15:12 2010
@@ -2374,7 +2374,8 @@
             raise FormError, 'Error: top-level "index.html" missing in the zipfile'
 
         # Assume the file is valid; remove any previous data
-        path = os.path.join(self.config.database_docs_dir, name, "")
+        path = os.path.join(self.config.database_docs_dir,
+                            name.encode('utf8'), "")
         if os.path.exists(path):
             shutil.rmtree(path)
         os.mkdir(path)


More information about the Pypi-checkins mailing list