Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cc-a committed Aug 29, 2020
1 parent 4018142 commit 183c84b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion poetry/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def create_legacy_repository(
self, source, auth_config
): # type: (Dict[str, str], Config) -> LegacyRepository
from .repositories.auth import Auth
from .repositories.legacy_repository import LegacyRepository
from .repositories.find_links_repository import FindLinksRepository
from .repositories.legacy_repository import LegacyRepository
from .utils.helpers import get_cert
from .utils.helpers import get_client_cert
from .utils.password_manager import PasswordManager
Expand Down
3 changes: 0 additions & 3 deletions poetry/repositories/legacy_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from poetry.core.semver import parse_constraint
from poetry.locations import REPOSITORY_CACHE_DIR
from poetry.utils._compat import Path
from poetry.utils.helpers import canonicalize_name
from poetry.utils.patterns import wheel_file_re

from ..inspection.info import PackageInfo
Expand Down Expand Up @@ -317,8 +316,6 @@ def package(self, name, version, extras=None): # type: (...) -> Package

return self._packages[index]
except ValueError:
release_info = self.get_release_info(name, version)

package = super(LegacyRepository, self).package(name, version, extras)

package.source_type = self.repository_type
Expand Down
4 changes: 1 addition & 3 deletions tests/repositories/test_find_links_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ def test_get_release_info():

for package_name in TEST_PACKAGES:
package = repo.find_packages(package_name)[0]
info = repo.get_release_info(
package_name, package.version.text
)
info = repo.get_release_info(package_name, package.version.text)
legacy_info = legacy_repo.get_release_info(package_name, package.version.text)
assert info.cache_version == legacy_info.cache_version
assert info.files == legacy_info.files
Expand Down

0 comments on commit 183c84b

Please sign in to comment.