Skip to content

Commit

Permalink
Remove unused code in nsist.pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Sep 30, 2018
1 parent cecd066 commit 57bfd59
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions nsist/pypi.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
from distutils.version import LooseVersion
import errno
"""Find, download and unpack wheels."""
import fnmatch
import hashlib
import logging
try:
from pathlib import Path
except ImportError:
from pathlib2 import Path # Backport
from pathlib import Path
import re
import shutil
from tempfile import mkdtemp
Expand All @@ -19,13 +15,6 @@

logger = logging.getLogger(__name__)

def find_pypi_release(requirement):
if '==' in requirement:
name, version = requirement.split('==', 1)
return yarg.get(name).release(version)
else:
return yarg.get(requirement).latest_release

class NoWheelError(Exception): pass

class WheelLocator(object):
Expand Down

0 comments on commit 57bfd59

Please sign in to comment.