Skip to content

Commit

Permalink
fix long line
Browse files Browse the repository at this point in the history
  • Loading branch information
brycedrennan committed Mar 4, 2019
1 parent 8551ff7 commit 78a546e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ tldextract.egg-info
.envrc
tldextract/.suffix_cache/*
.pytest_cache
.python-version
2 changes: 1 addition & 1 deletion tldextract/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def return_cache(*args, **kwargs):

make_dir(cache_path)

# without locking, Concurrency could leader to multiple writers, or readers of a partial write
# locking used to prevent concurrent writes, or reads of a partially written file
with FileLock(lock_path, timeout=20):
if not os.path.isfile(cache_path):
result = func(*args, **kwargs)
Expand Down

0 comments on commit 78a546e

Please sign in to comment.