Skip to content

Commit

Permalink
Fix check for micropython
Browse files Browse the repository at this point in the history
  • Loading branch information
laffra committed Mar 27, 2024
1 parent 135fd82 commit 0aeddef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ltk/jquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import json
from pyscript import document # type: ignore
from pyscript import window # type: ignore
import os
import time
import sys

Expand All @@ -15,7 +14,7 @@
]

def is_micro_python():
return not hasattr(time, "time")
return "Clang" not in sys.version

def _fix_time_on_micropython():
if is_micro_python():
Expand Down

0 comments on commit 0aeddef

Please sign in to comment.