We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7c805c commit 75c56acCopy full SHA for 75c56ac
python-ecosys/iperf3/iperf3.py
@@ -534,7 +534,7 @@ def main():
534
client(opt_host, opt_udp, opt_reverse)
535
536
537
-if sys.platform == "linux":
+if sys.implementation.name != "micropython":
538
539
def pollable_is_sock(pollable, sock):
540
return sock is not None and pollable[0] == sock.fileno()
@@ -544,12 +544,12 @@ def ticks_us():
544
545
def ticks_diff(a, b):
546
return a - b
547
-
548
- if __name__ == "__main__":
549
- main()
550
else:
551
552
553
return pollable[0] == sock
554
555
from time import ticks_us, ticks_diff
+
+if sys.platform == "linux" and __name__ == "__main__":
+ main()
0 commit comments