gristlabs_grist-core/sandbox/grist/imports
Dmitry S 64d9faed5a (core) Fix import parsing from choking up on Python isdigit() surprises
Summary:
Python isdigit() returns true for unicode characters such as "²", which fail
when used as an argument to int().

Instead, be explicit about only considering characters 0-9 to be digits.

Test Plan: Added a test case which produces an error without this change.

Reviewers: alexmojaki

Reviewed By: alexmojaki

Differential Revision: https://phab.getgrist.com/D3027
2021-09-20 16:17:34 -04:00
..
fixtures (core) Fix import parsing from choking up on Python isdigit() surprises 2021-09-20 16:17:34 -04:00
__init__.py
dateguess.py (core) Fix import parsing from choking up on Python isdigit() surprises 2021-09-20 16:17:34 -04:00
import_csv.py
import_json.py
import_utils.py
import_xls.py
register.py
test_dateguess.py
test_import_csv.py (core) Fix import parsing from choking up on Python isdigit() surprises 2021-09-20 16:17:34 -04:00
test_import_json.py
test_import_xls.py
test_messytables.py