changeset 26:06b57331a2a3

Fix newline in http requests
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Mon, 20 Jun 2016 11:13:49 +0200
parents 8cc0d349b9c3
children 6f350add921c
files basics.rst
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/basics.rst	Mon Jun 20 11:11:01 2016 +0200
+++ b/basics.rst	Mon Jun 20 11:13:49 2016 +0200
@@ -472,7 +472,8 @@
 browser does to get the content of web pages::
 
     import urequests
-    r = urequests.get("http://duckduckgo.com/?q=micropython&format=json").json()    print(r)
+    r = urequests.get("http://duckduckgo.com/?q=micropython&format=json").json()
+    print(r)
     print(r['AbstractText'])
 
 You can use that to get information from websites, such as weather forecasts::