kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio.core: Protect another case of debug logging with "if __debug__:".
rodzic
26290883a2
commit
38885fbf4f
|
@ -41,7 +41,8 @@ class EventLoop:
|
||||||
def wait(self, delay):
|
def wait(self, delay):
|
||||||
# Default wait implementation, to be overriden in subclasses
|
# Default wait implementation, to be overriden in subclasses
|
||||||
# with IO scheduling
|
# with IO scheduling
|
||||||
log.debug("Sleeping for: %s", delay)
|
if __debug__:
|
||||||
|
log.debug("Sleeping for: %s", delay)
|
||||||
time.sleep(delay)
|
time.sleep(delay)
|
||||||
|
|
||||||
def run_forever(self):
|
def run_forever(self):
|
||||||
|
|
Ładowanie…
Reference in New Issue