Skip to content

Commit

Permalink
Fix deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
FichteFoll committed Nov 21, 2019
1 parent a920800 commit d20d035
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ def cmd(self):
# Add a temporary cache dir to the command if none was specified.
# Helps keep the environment clean
# by not littering everything with `.mypy_cache` folders.
settings = self.get_view_settings()
if not settings.get('cache-dir'):
cwd = self.get_working_dir(settings)
if not self.settings.get('cache-dir'):
cwd = self.get_working_dir()
if cwd in tmpdirs:
cache_dir = tmpdirs[cwd].name
else:
Expand Down

2 comments on commit d20d035

@nicksspirit
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When will you publish to Package Control? with this deprecation fix

@FichteFoll
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, forgot about that. Tagged a new release.

Please sign in to comment.