summaryrefslogtreecommitdiff
path: root/sqlparse/tokens.py
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2010-07-04 20:53:02 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2010-07-04 20:53:02 +0200
commit3bfa75a7d2042cdd56245034b9467b28f578ce9c (patch)
tree7617a56c60146f544778b25c1188159bfcd9b961 /sqlparse/tokens.py
parent2a090575f6d0571208a6d3a6ae57c31c4adbc653 (diff)
downloadsqlparse-3bfa75a7d2042cdd56245034b9467b28f578ce9c.tar.gz
PEP8: Code cleanup.
Diffstat (limited to 'sqlparse/tokens.py')
-rw-r--r--sqlparse/tokens.py35
1 files changed, 17 insertions, 18 deletions
diff --git a/sqlparse/tokens.py b/sqlparse/tokens.py
index 5d1458a..25dbe9f 100644
--- a/sqlparse/tokens.py
+++ b/sqlparse/tokens.py
@@ -40,31 +40,31 @@ class _TokenType(tuple):
return 'Token' + (self and '.' or '') + '.'.join(self)
-Token = _TokenType()
+Token = _TokenType()
# Special token types
-Text = Token.Text
-Whitespace = Text.Whitespace
-Newline = Whitespace.Newline
-Error = Token.Error
+Text = Token.Text
+Whitespace = Text.Whitespace
+Newline = Whitespace.Newline
+Error = Token.Error
# Text that doesn't belong to this lexer (e.g. HTML in PHP)
-Other = Token.Other
+Other = Token.Other
# Common token types for source code
-Keyword = Token.Keyword
-Name = Token.Name
-Literal = Token.Literal
-String = Literal.String
-Number = Literal.Number
+Keyword = Token.Keyword
+Name = Token.Name
+Literal = Token.Literal
+String = Literal.String
+Number = Literal.Number
Punctuation = Token.Punctuation
-Operator = Token.Operator
-Comparsion = Operator.Comparsion
-Wildcard = Token.Wildcard
-Comment = Token.Comment
-Assignment = Token.Assignement
+Operator = Token.Operator
+Comparsion = Operator.Comparsion
+Wildcard = Token.Wildcard
+Comment = Token.Comment
+Assignment = Token.Assignement
# Generic types for non-source code
-Generic = Token.Generic
+Generic = Token.Generic
# String and some others are not direct childs of Token.
# alias them:
@@ -81,4 +81,3 @@ Group = Token.Group
Group.Parenthesis = Token.Group.Parenthesis
Group.Comment = Token.Group.Comment
Group.Where = Token.Group.Where
-