fix: ignore commented lines in viv run

This commit is contained in:
Daylin Morgan 2023-07-31 15:03:54 -05:00
parent 9a7dac8cf6
commit d90db35a84
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -52,7 +52,7 @@ from typing import (
from urllib.error import HTTPError
from urllib.request import urlopen
__version__ = "23.5a6"
__version__ = "23.5a6-dev"
class Spinner:
@ -1023,7 +1023,8 @@ def uses_viv(txt: str) -> bool:
return bool(
re.search(
"""
\s*__import__\(\s*["']viv["']\s*\).use\(.*
^(?!\#)\s*
__import__\(\s*["']viv["']\s*\).use\(.*
|
from\ viv\ import\ use
|