      For example::
  
          from django.utils.functional import keep_lazy, keep_lazy_text
  
          def fancy_utility_function(s, ...):
              # Do some conversion on string 's'
              ...
          fancy_utility_function = keep_lazy(str)(fancy_utility_function)
  
          # Or more succinctly:
 
</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    in a Python syntax error. For example::
 </s> add    in a Python syntax error. For example:

   .. code-block:: text </s> remove           # ...
 </s> add           ...
        def fancy_utility_function(s, *args, **kwargs):
      For example::
  
          from django.utils.functional import keep_lazy, keep_lazy_text
  
        def fancy_utility_function(s, *args, **kwargs):
              # Do some conversion on string 's'
              ...
          fancy_utility_function = keep_lazy(str)(fancy_utility_function)
  
          # Or more succinctly:
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