Skip to content

Commit 2d3d289

Browse files
committed
fix #73 : locking syntax error in Python 2.7
1 parent 5001aad commit 2d3d289

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ Changelog
77

88
Bugfixes
99
--------
10-
* Fix ``MostRecentProvider`` behavior when lock cannot be acquired.
10+
* Fix :class:`MostRecentProvider` behavior when lock cannot be acquired.
1111
`#72 <https://github.com/awslabs/aws-dynamodb-encryption-python/issues/72>`_
12+
* Fix :class:`MostRecentProvider` lock acquisition for Python 2.7.
13+
`#73 <https://github.com/awslabs/aws-dynamodb-encryption-python/issues/73>`_
1214

1315
1.0.3 -- 2018-05-03
1416
===================

src/dynamodb_encryption_sdk/material_providers/most_recent.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def _get_most_recent_version(self, allow_local):
240240
:returns: version and corresponding cryptographic materials provider
241241
:rtype: CryptographicMaterialsProvider
242242
"""
243-
acquired = self._lock.acquire(blocking=not allow_local)
243+
acquired = self._lock.acquire(not allow_local)
244244

245245
if not acquired:
246246
# We failed to acquire the lock.

0 commit comments

Comments
 (0)