Skip to content

Commit

Permalink
Import warnings on demand. (#159)
Browse files Browse the repository at this point in the history
Fixes #158.
  • Loading branch information
jamadden authored and jimfulton committed Apr 11, 2017
1 parent b6a9fb4 commit e68ca5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
5.2.3 (unreleased)
==================

- Nothing changed yet.
- Fix an import error. See `issue 158 <https://github.com/zopefoundation/ZODB/issues/158>`_.


5.2.2 (2017-04-11)
Expand All @@ -14,7 +14,7 @@
- Fixed: A blob misfeature set blob permissions so that blobs and blob
directories were only readable by the database process owner, rather
than honoring user-controlled permissions (e.g. ``umask``).

See `issue 155 <https://github.com/zopefoundation/ZODB/issues/155>`_.

5.2.1 (2017-04-08)
==================
Expand Down Expand Up @@ -411,4 +411,3 @@ Bugs Fixed
.. note::
Please see https://github.com/zopefoundation/ZODB/blob/master/HISTORY.rst
for older versions of ZODB.

2 changes: 2 additions & 0 deletions src/ZODB/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,13 @@ def create(self):
(self.layout_name, self.base_dir, layout))

def isSecure(self, path):
import warnings
warnings.warn(
"isSecure is deprecated. Permissions are no longer set by ZODB",
DeprecationWarning, stacklevel=2)

def checkSecure(self):
import warnings
warnings.warn(
"checkSecure is deprecated. Permissions are no longer set by ZODB",
DeprecationWarning, stacklevel=2)
Expand Down

0 comments on commit e68ca5a

Please sign in to comment.