fix unfinished Python2 -> 3 translation
found by mypy
This commit is contained in:
parent
dcc71ce47d
commit
bea4f29d28
@ -18,7 +18,7 @@ import calendar
|
|||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
import urllib
|
from urllib.request import urlopen
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
from escpos.printer import Usb
|
from escpos.printer import Usb
|
||||||
@ -93,7 +93,7 @@ url = (
|
|||||||
+ LONG
|
+ LONG
|
||||||
+ "?exclude=[alerts,minutely,hourly,flags]&units=si"
|
+ "?exclude=[alerts,minutely,hourly,flags]&units=si"
|
||||||
) # change last bit to 'us' for Fahrenheit
|
) # change last bit to 'us' for Fahrenheit
|
||||||
response = urllib.urlopen(url)
|
response = urlopen(url)
|
||||||
data = json.loads(response.read())
|
data = json.loads(response.read())
|
||||||
|
|
||||||
printer.print_and_feed(n=1)
|
printer.print_and_feed(n=1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user