          from django.utils.functional import keep_lazy, keep_lazy_text
  
          # Our previous example was:
          @keep_lazy(str)
          def fancy_utility_function(s, ...):
              ...
  
          # Which can be rewritten as:
          @keep_lazy_text
          def fancy_utility_function(s, ...):
 
</s> remove         def fancy_utility_function(s, ...):
 </s> add         def fancy_utility_function(s, *args, **kwargs): </s> remove         def fancy_utility_function(s, ...):
 </s> add         def fancy_utility_function(s, *args, **kwargs): </s> remove         def fancy_utility_function(s, ...):
 </s> add         def fancy_utility_function(s, *args, **kwargs): </s> remove     >>> class JSPath:
 </s> add     ... class JSPath: </s> remove             # ...
 </s> add             ...
        def fancy_utility_function(s, *args, **kwargs):
          from django.utils.functional import keep_lazy, keep_lazy_text
  
          # Our previous example was:
          @keep_lazy(str)
        def fancy_utility_function(s, *args, **kwargs):
              ...
  
          # Which can be rewritten as:
          @keep_lazy_text
          def fancy_utility_function(s, ...):
keep keep keep keep replace keep keep keep keep keep
 Refs #34140 -- Corrected rst code-block and various formatting issues in docs. 
docs/ref/utils.txt