1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Require a minimal version of "attr".

See: https://github.com/shlomif/PySolFC/issues/159 . Thanks to
@radub7 for the report.
This commit is contained in:
Shlomi Fish 2020-04-22 20:21:10 +03:00
parent 39f181e087
commit 0ac4339252

View file

@ -78,6 +78,11 @@ if TOOLKIT == 'tk':
else:
from pysollib.pysoltk import reset_solver_dialog
# See: https://github.com/shlomif/PySolFC/issues/159 .
# 'factory=' is absent from older versions.
assert getattr(attr, '__version_info__', (0, 0, 0)) >= (18, 2, 0), (
"Newer version of https://pypi.org/project/attrs/ is required.")
PLAY_TIME_TIMEOUT = 200
S_PLAY = 0x40