kopia lustrzana https://github.com/micropython/micropython-lib
urllib.urequest: PEP8 fix.
rodzic
99c7b546d1
commit
8506e36466
|
@ -1,7 +1,7 @@
|
|||
import usocket
|
||||
|
||||
def urlopen(url, data=None, method="GET"):
|
||||
if data is not None and method=="GET":
|
||||
if data is not None and method == "GET":
|
||||
method = "POST"
|
||||
try:
|
||||
proto, dummy, host, path = url.split("/", 3)
|
||||
|
|
Ładowanie…
Reference in New Issue