Commits

Daniel Holth  committed 5f0a177

Python < 2.5 doesn't support tuple arguments to .endswith()

  • Participants
  • Parent commits caa45f6

Comments (0)

Files changed (1)

File pkg_resources.py

             # scan for .egg and .egg-info in directory
             for entry in os.listdir(path_item):
                 lower = entry.lower()
-                if lower.endswith(('.egg-info', '.dist-info')):
+                if lower.endswith('.egg-info') or lower.endswith('.dist-info'):
                     fullpath = os.path.join(path_item, entry)
                     if os.path.isdir(fullpath):
                         # egg-info directory, allow getting metadata