parameters: (path)
return_statement: return urllib.quote(path, safe='/+:')
docstring: Handle any characters in the path that should be escaped.
docstring_summary: Handle any characters in the path that should be escaped.
docstring_tokens: Handle any characters in the path that should be escaped .
function: def _escape(path):
      """Handle any characters in the path that should be escaped."""
      # FIXME: web browsers don't appear to blindly quote every character
      # when converting filenames to files. Instead of using urllib's default
      # rules, we allow a small list of other characters through un-escaped.
      # It's unclear if this is the best possible solution.
      return urllib.quote(path, safe='/+:')
function_tokens: def _escape ( path ) : # FIXME: web browsers don't appear to blindly quote every character # when converting filenames to files. Instead of using urllib's default # rules, we allow a small list of other characters through un-escaped. # It's unclear if this is the best possible solution. return urllib . quote ( path , safe = '/+:' )