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 (core) move data engine code to core 2020-07-29 08:57:25 -04:00
dateguess.py (core) Fix import parsing from choking up on Python isdigit() surprises 2021-09-20 16:17:34 -04:00
import_csv.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
import_json.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
import_utils.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
import_xls.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
register.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
test_dateguess.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
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 (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
test_import_xls.py (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
test_messytables.py (core) Simple Python 3 compatibility changes 2021-06-22 17:13:17 +02:00