Skip to content

Commit ded2372

Browse files
authored
Update code to Python 3 (#202)
`httplib` has been replace by `http.client`
1 parent 6082f8a commit ded2372

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ To log all the requests made by your script in significant detail, add to your s
9393

9494
``` python
9595
import logging
96-
import httplib
97-
httplib.HTTPConnection.debuglevel = 1
96+
import http.client
97+
http.client.HTTPConnection.debuglevel = 1
9898

9999
logging.basicConfig() # you need to initialize logging, otherwise you will not see anything from requests
100100
logging.getLogger().setLevel(logging.DEBUG)

0 commit comments

Comments
 (0)