diff options
Diffstat (limited to 'sqlparse/sql.py')
| -rw-r--r-- | sqlparse/sql.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sqlparse/sql.py b/sqlparse/sql.py index 52d9b4a..8eef036 100644 --- a/sqlparse/sql.py +++ b/sqlparse/sql.py @@ -48,6 +48,10 @@ class Token(object): short = raw return re.sub('\s+', ' ', short) + def flatten(self): + """Resolve subgroups.""" + yield self + def match(self, ttype, values, regex=False): """Checks whether the token matches the given arguments. |
