Skip to content

Commit 0ff4a33

Browse files
committed
add slash
1 parent d5e0e37 commit 0ff4a33

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

fastcore/xtras.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def urlquote(url):
186186
"Update url's path with `urllib.parse.quote`"
187187
subdelims = "!$&'()*+,;="
188188
gendelims = ":?#[]@"
189-
safe = subdelims+gendelims+"%"
189+
safe = subdelims+gendelims+"%/"
190190
p = list(urlparse(url))
191191
p[2] = urllib.parse.quote(p[2], safe=safe)
192192
for i in range(3,6): p[i] = urllib.parse.quote(p[i], safe=safe)

nbs/03_xtras.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@
588588
{
589589
"data": {
590590
"text/plain": [
591-
"['e', 'c', 'h', 'a', 'f', 'g', 'b', 'd']"
591+
"['e', 'g', 'a', 'd', 'c', 'b', 'f', 'h']"
592592
]
593593
},
594594
"execution_count": null,
@@ -1168,7 +1168,7 @@
11681168
" \"Update url's path with `urllib.parse.quote`\"\n",
11691169
" subdelims = \"!$&'()*+,;=\"\n",
11701170
" gendelims = \":?#[]@\"\n",
1171-
" safe = subdelims+gendelims+\"%\"\n",
1171+
" safe = subdelims+gendelims+\"%/\"\n",
11721172
" p = list(urlparse(url))\n",
11731173
" p[2] = urllib.parse.quote(p[2], safe=safe)\n",
11741174
" for i in range(3,6): p[i] = urllib.parse.quote(p[i], safe=safe)\n",
@@ -1183,7 +1183,7 @@
11831183
{
11841184
"data": {
11851185
"text/plain": [
1186-
"'https://github.com/%2Ffastai%2Ffastai%2Fcompare%2Fmaster@%7B1.day.ago%7D%E2%80%A6master'"
1186+
"'https://github.com/fastai/fastai/compare/master@%7B1.day.ago%7D%E2%80%A6master'"
11871187
]
11881188
},
11891189
"execution_count": null,
@@ -1203,7 +1203,7 @@
12031203
{
12041204
"data": {
12051205
"text/plain": [
1206-
"'https://www.google.com/%2Fsearch?q=%E4%BD%A0%E5%A5%BD'"
1206+
"'https://www.google.com/search?q=%E4%BD%A0%E5%A5%BD'"
12071207
]
12081208
},
12091209
"execution_count": null,

0 commit comments

Comments
 (0)