CI: Fix linting issues.
This commit is contained in:
parent
5bc85c0e6d
commit
b744f78a46
|
@ -331,7 +331,7 @@ async def restful_resource_handler(req, resp, param=None):
|
||||||
gc.collect()
|
gc.collect()
|
||||||
await resp.send('0\r\n\r\n')
|
await resp.send('0\r\n\r\n')
|
||||||
else:
|
else:
|
||||||
if type(res) == tuple:
|
if type(res) is tuple:
|
||||||
resp.code = res[1]
|
resp.code = res[1]
|
||||||
res = res[0]
|
res = res[0]
|
||||||
elif res is None:
|
elif res is None:
|
||||||
|
|
|
@ -36,6 +36,7 @@ MAX_RANGE = 1
|
||||||
# Rate of display change i.e the lower the value the slower the transition
|
# Rate of display change i.e the lower the value the slower the transition
|
||||||
TRANSITION_RATE = 1.0 / 72.0
|
TRANSITION_RATE = 1.0 / 72.0
|
||||||
|
|
||||||
|
|
||||||
# perform linear interpolation to map a range of values to discrete
|
# perform linear interpolation to map a range of values to discrete
|
||||||
def map_range(
|
def map_range(
|
||||||
x,
|
x,
|
||||||
|
|
|
@ -331,7 +331,7 @@ async def restful_resource_handler(req, resp, param=None):
|
||||||
gc.collect()
|
gc.collect()
|
||||||
await resp.send('0\r\n\r\n')
|
await resp.send('0\r\n\r\n')
|
||||||
else:
|
else:
|
||||||
if type(res) == tuple:
|
if type(res) is tuple:
|
||||||
resp.code = res[1]
|
resp.code = res[1]
|
||||||
res = res[0]
|
res = res[0]
|
||||||
elif res is None:
|
elif res is None:
|
||||||
|
|
Loading…
Reference in New Issue