diff options
| author | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-06-10 22:54:16 -0700 |
|---|---|---|
| committer | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-06-11 04:33:41 -0700 |
| commit | deb38ec69a428452c3b519d4ab02956af8eebd0d (patch) | |
| tree | f40c7950735c7b2d8f207be89c3ea8dc43b49724 /sqlparse | |
| parent | 886408b4e223694db4c3288643d55d4a382e5d67 (diff) | |
| download | sqlparse-deb38ec69a428452c3b519d4ab02956af8eebd0d.tar.gz | |
Change variable name to lowercase
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/filters/reindent.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sqlparse/filters/reindent.py b/sqlparse/filters/reindent.py index f7ddfc9..b490631 100644 --- a/sqlparse/filters/reindent.py +++ b/sqlparse/filters/reindent.py @@ -97,13 +97,13 @@ class ReindentFilter(object): self._process_default(tlist) def _process_parenthesis(self, tlist): - is_DML_DLL = tlist.token_next_by(t=(T.Keyword.DML, T.Keyword.DDL)) + is_dml_dll = tlist.token_next_by(t=(T.Keyword.DML, T.Keyword.DDL)) first = tlist.token_next_by(m=sql.Parenthesis.M_OPEN) - with indent(self, 1 if is_DML_DLL else 0): - tlist.tokens.insert(0, self.nl()) if is_DML_DLL else None + with indent(self, 1 if is_dml_dll else 0): + tlist.tokens.insert(0, self.nl()) if is_dml_dll else None with offset(self, self._get_offset(first) + 1): - self._process_default(tlist, not is_DML_DLL) + self._process_default(tlist, not is_dml_dll) def _process_identifierlist(self, tlist): identifiers = list(tlist.get_identifiers()) |
