original_docstring: 
          Escape single quotes in bash string strings.
  
          Replace ' (single-quote) in the command with an escaped version.
          This needs to be done, since the command is passed to "docker
          exec" to execute and needs to be single quoted.
          Strictly speaking, it's impossible to escape single-quoted
          bash script, but there is a workaround - end the single quoted
           string, then concatenate a double quoted single quote,
          and finally re-open the string with a single quote. Because
          this is inside a single quoted python, string, the single
          quotes also need escaping.
  
          :param command: The string to escape.
          :return: The escaped string
          
docstring: Escape single quotes in bash string strings.
  Replace ' (single-quote) in the command with an escaped version.
  This needs to be done, since the command is passed to "docker
  exec" to execute and needs to be single quoted.
  Strictly speaking, it's impossible to escape single-quoted
  bash script, but there is a workaround - end the single quoted
  string, then concatenate a double quoted single quote,
  and finally re-open the string with a single quote. Because
  this is inside a single quoted python, string, the single
  quotes also need escaping.
docstring_tokens: Escape single quotes in bash string strings . Replace ' ( single - quote ) in the command with an escaped version . This needs to be done since the command is passed to " docker exec " to execute and needs to be single quoted . Strictly speaking it ' s impossible to escape single - quoted bash script but there is a workaround - end the single quoted string then concatenate a double quoted single quote and finally re - open the string with a single quote . Because this is inside a single quoted python string the single quotes also need escaping .
code: def escape_bash_single_quotes(command):
          """
          Escape single quotes in bash string strings.
  
          Replace ' (single-quote) in the command with an escaped version.
          This needs to be done, since the command is passed to "docker
          exec" to execute and needs to be single quoted.
          Strictly speaking, it's impossible to escape single-quoted
          bash script, but there is a workaround - end the single quoted
           string, then concatenate a double quoted single quote,
          and finally re-open the string with a single quote. Because
          this is inside a single quoted python, string, the single
          quotes also need escaping.
  
          :param command: The string to escape.
          :return: The escaped string
          """
          return command.replace('\'', '\'"\'"\'')
code_tokens: def escape_bash_single_quotes ( command ) : return command . replace ( '\'' , '\'"\'"\'' )
short_docstring: Escape single quotes in bash string strings.
short_docstring_tokens: Escape single quotes in bash string strings .
comment: """
          Escape single quotes in bash string strings.
  
          Replace ' (single-quote) in the command with an escaped version.
          This needs to be done, since the command is passed to "docker
          exec" to execute and needs to be single quoted.
          Strictly speaking, it's impossible to escape single-quoted
          bash script, but there is a workaround - end the single quoted
           string, then concatenate a double quoted single quote,
          and finally re-open the string with a single quote. Because
          this is inside a single quoted python, string, the single
          quotes also need escaping.
  
          :param command: The string to escape.
          :return: The escaped string
          """