shinichi-takii / ddlparse

DDL parase and Convert to BigQuery JSON schema and DDL statements
https://pypi.org/project/ddlparse/
BSD 3-Clause "New" or "Revised" License
87 stars 29 forks source link

Python3.7 : FutureWarning: Possible nested set at position 1 #29

Closed shinichi-takii closed 5 years ago

shinichi-takii commented 5 years ago

Description

Python3.7 FutureWarning message:

.tox/py37/lib/python3.7/site-packages/pyparsing.py:2910
  ddlparse/.tox/py37/lib/python3.7/site-packages/pyparsing.py:2910: FutureWarning: Possible nested set at position 1
    self.re = re.compile( self.reString )

Reference

Python3.7 Documents > re — Regular expression operations https://docs.python.org/3.7/library/re.html

Support of nested sets and set operations as in Unicode Technical Standard #18 might be added in the future.
This would change the syntax, so to facilitate this change a FutureWarning will be raised in ambiguous cases for the time being.
That includes sets starting with a literal '[' or containing literal character sequences '--', '&&', '~~', and '||'.
To avoid a warning escape them with a backslash.