diff --git a/portalocker/__about__.py b/portalocker/__about__.py index 27bdd4c..61d1a88 100644 --- a/portalocker/__about__.py +++ b/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' diff --git a/portalocker/utils.py b/portalocker/utils.py index e488538..1007d7f 100644 --- a/portalocker/utils.py +++ b/portalocker/utils.py @@ -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