Skip to content

Commit

Permalink
changed default for fail_when_locked to be more logical
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Jan 14, 2017
1 parent 7af24fe commit 26998fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion portalocker/__about__.py
@@ -1,7 +1,7 @@
__package_name__ = 'portalocker'
__author__ = 'Rick van Hattem'
__email__ = 'wolph@wol.ph'
__version__ = '1.0.0'
__version__ = '1.0.1'
__description__ = '''Wraps the portalocker recipe for easy usage'''
__url__ = 'https://github.com/WoLpH/portalocker'

2 changes: 1 addition & 1 deletion portalocker/utils.py
Expand Up @@ -65,7 +65,7 @@ class Lock(object):

def __init__(
self, filename, mode='a', timeout=DEFAULT_TIMEOUT,
check_interval=DEFAULT_CHECK_INTERVAL, fail_when_locked=True,
check_interval=DEFAULT_CHECK_INTERVAL, fail_when_locked=False,
flags=LOCK_METHOD):
'''Lock manager with build-in timeout
Expand Down

0 comments on commit 26998fa

Please sign in to comment.