Skip to content

Commit a51bf3c

Browse files
committed
Url
1 parent f9b1d3a commit a51bf3c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ b'.\n..\nfile1.txt\nfile2.txt\n'
742742
```
743743

744744
### Input
745-
#### Reads a line from user input or pipe if present. The trailing newline gets stripped:
745+
**Reads a line from user input or pipe if present. The trailing newline gets stripped.**
746746

747747
```python
748748
filename = input('Enter a file name: ')
@@ -1393,15 +1393,15 @@ from urllib.parse import quote, quote_plus, unquote, unquote_plus
13931393
```
13941394

13951395
### Encode
1396-
```python
1396+
```
13971397
>>> quote("Can't be in URL!")
13981398
'Can%27t%20be%20in%20URL%21'
13991399
>>> quote_plus("Can't be in URL!")
14001400
'Can%27t+be+in+URL%21'
14011401
```
14021402

14031403
### Decode
1404-
```python
1404+
```
14051405
>>> unquote('Can%27t+be+in+URL%21')
14061406
"Can't+be+in+URL!"'
14071407
>>> unquote_plus('Can%27t+be+in+URL%21')

0 commit comments

Comments
 (0)