Skip to content

Commit 8d61350

Browse files
committed
Checking for implementation name before warning about CP<9.0.0
1 parent 63b6520 commit 8d61350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_templateengine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
try:
3333
from sys import implementation
3434

35-
if implementation.version < (9, 0, 0):
35+
if implementation.name == "circuitpython" and implementation.version < (9, 0, 0):
3636
print(
3737
"Warning: adafruit_templateengine requires CircuitPython 9.0.0, as previous versions"
3838
" will have limited functionality when using block comments and non-ASCII characters."

0 commit comments

Comments
 (0)