- return urlencode(query).replace("+", "%20")
-
- return urlencode(query, safe='~').replace("+", "%20")
\ No newline at end of file
+ return urlencode(query).replace(TILDE, "~").replace("+", "%20")
+
+ return urlencode(query, safe='~').replace("+", "%20")