1. anatoly techtonik
  2. pypi-techtonik


Martin von Löwis  committed 1bc77f2

Port to latest distutils2. Fixes #5 on https://bitbucket.org/loewis/pypi.

  • Participants
  • Parent commits 1c94ae7
  • Branches default

Comments (0)

Files changed (1)

File webui.py

View file
 import re, zipfile, logging, shutil, Cookie, subprocess, hashlib
 from zope.pagetemplate.pagetemplatefile import PageTemplateFile
 from distutils.util import rfc822_escape
-from distutils2.metadata import DistributionMetadata
+from distutils2.metadata import Metadata
     import json
 except ImportError:
         # loading the metadata into
         # a DistributionMetadata instance
         # so we can use its check() method
-        metadata = DistributionMetadata()
+        metadata = Metadata()
         for key, value in data.items():
             metadata[key] = value
         metadata['Metadata-Version'] = '1.2'