summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.txt2
-rw-r--r--pyramid/settings.py8
2 files changed, 5 insertions, 5 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 28637c1a7..2737e6893 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -21,7 +21,7 @@ Deprecations
------------
- The ``pyramid.settings.get_settings`` API is now deprecated. Use
- ``pyramid.threadlocals.get_registry().settings`` instead or use the
+ ``pyramid.threadlocals.get_current_registry().settings`` instead or use the
``settings`` attribute of the registry available from the request
(``request.registry.settings``).
diff --git a/pyramid/settings.py b/pyramid/settings.py
index d6b0a6470..64b108421 100644
--- a/pyramid/settings.py
+++ b/pyramid/settings.py
@@ -78,8 +78,8 @@ def get_settings():
performs the same duty.
.. warning:: This method is deprecated as of Pyramid 1.0. Use
- ``pyramid.threadlocals.get_registry().settings`` instead or use the
- ``settings`` attribute of the registry available from the request
+ ``pyramid.threadlocals.get_current_registry().settings`` instead or use '
+ the ``settings`` attribute of the registry available from the request
(``request.registry.settings``).
"""
reg = get_current_registry()
@@ -88,8 +88,8 @@ def get_settings():
deprecated(
'get_settings',
'(pyramid.settings.get_settings is deprecated as of Pyramid 1.0. Use'
- '``pyramid.threadlocals.get_registry().settings`` instead or use the '
- '``settings`` attribute of the registry available from the request '
+ '``pyramid.threadlocals.get_current_registry().settings`` instead or use '
+ 'the ``settings`` attribute of the registry available from the request '
'(``request.registry.settings``)).')
def asbool(s):