ArangoDB-Community / pyArango

Python Driver for ArangoDB with built-in validation
https://pyarango.readthedocs.io/en/latest/
Apache License 2.0
238 stars 90 forks source link

Incompatibility with python3 in String validator. #244

Open martin-re opened 9 months ago

martin-re commented 9 months ago
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> from pyArango.validation import String
>>> from pyArango.theExceptions import ValidationError
>>> 
>>> try:
...     String().validate(object)
... except ValidationError:
...     pass
... except Exception as e:
...     print(e)
... 
name 'unicode' is not defined

This issue is sub-problem of #215.