Skip to content

Commit c5ba56f

Browse files
committed
FIxed formatting issue in Readme
1 parent f83407a commit c5ba56f

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

README.rst

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
*****
1+
*********
22
Fetchcode
3-
*****
3+
*********
44
It is a library to reliably fetch code via HTTP, FTP and version control systems.
55

66
Installation
@@ -12,22 +12,22 @@ Then install all the requirements using
1212
`pip3 install -r requirements.txt`
1313

1414
Running test suite
15-
#################
15+
##################
1616

1717
To run test suite
1818
`python3 -m pytest`
1919

2020
Usage of API to fetch HTTP/S and FTP URLs
2121
#########################################
22-
```
23-
from fetchcode import fetch
24-
url = 'A Http or FTP URL'
25-
location = 'Location of file'
26-
# This returns a response object which has attributes
27-
# 'content_type' content type of the file
28-
# 'location' the absolute location of the files that was fetched
29-
# 'scheme' scheme of the URL
30-
# 'size' size of the retrieved content in bytes
31-
# 'url' fetched URL
32-
resp = fetch(url = url)
33-
```
22+
23+
.. code-block:: python
24+
25+
from fetchcode import fetch
26+
url = 'A Http or FTP URL'
27+
# This returns a response object which has attributes
28+
# 'content_type' content type of the file
29+
# 'location' the absolute location of the files that was fetched
30+
# 'scheme' scheme of the URL
31+
# 'size' size of the retrieved content in bytes
32+
# 'url' fetched URL
33+
resp = fetch(url = url)

0 commit comments

Comments
 (0)