Commits

Martin von Löwis  committed 1bc77f2

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

  • Participants
  • Parent commits 1c94ae7

Comments (0)

Files changed (1)

 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
 try:
     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'