parameters: (text, restore=False)
return_statement: return text
docstring: r"""
      Parameter:  String (unicode or bytes).
      Returns:    The `text`, with after processing the following backslash
                  escape sequences. This is useful if you want to force a "dumb"
                  quote or other character to appear.
  
                  Escape  Value
                  ------  -----
                  \\      &#92;
                  \"      &#34;
                  \'      &#39;
                  \.      &#46;
                  \-      &#45;
                  \`      &#96;
docstring_summary: r"""
      Parameter:  String (unicode or bytes).
      Returns:    The `text`, with after processing the following backslash
                  escape sequences. This is useful if you want to force a "dumb"
                  quote or other character to appear.
docstring_tokens: r Parameter : String ( unicode or bytes ) . Returns : The text with after processing the following backslash escape sequences . This is useful if you want to force a dumb quote or other character to appear .
function: def processEscapes(text, restore=False):
      r"""
      Parameter:  String (unicode or bytes).
      Returns:    The `text`, with after processing the following backslash
                  escape sequences. This is useful if you want to force a "dumb"
                  quote or other character to appear.
  
                  Escape  Value
                  ------  -----
                  \\      &#92;
                  \"      &#34;
                  \'      &#39;
                  \.      &#46;
                  \-      &#45;
                  \`      &#96;
      """
      replacements = ((r'\\', r'&#92;'),
                      (r'\"', r'&#34;'),
                      (r"\'", r'&#39;'),
                      (r'\.', r'&#46;'),
                      (r'\-', r'&#45;'),
                      (r'\`', r'&#96;'))
      if restore:
          for (ch, rep) in replacements:
              text = text.replace(rep, ch[1])
      else:
          for (ch, rep) in replacements:
              text = text.replace(ch, rep)
  
      return text
function_tokens: def processEscapes ( text , restore = False ) : replacements = ( ( r'\\' , r'&#92;' ) , ( r'\"' , r'&#34;' ) , ( r"\'" , r'&#39;' ) , ( r'\.' , r'&#46;' ) , ( r'\-' , r'&#45;' ) , ( r'\`' , r'&#96;' ) ) if restore : for ( ch , rep ) in replacements : text = text . replace ( rep , ch [ 1 ] ) else : for ( ch , rep ) in replacements : text = text . replace ( ch , rep ) return text