Skip to content

Commit

Permalink
Remove unused variables tokenprog, Token and PlainToken (#1137)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdufresne authored and JelleZijlstra committed Jan 18, 2020
1 parent 915ebfc commit 7f5d0e9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions blib2to3/pgen2/tokenize.py
Expand Up @@ -129,9 +129,6 @@ def _combinations(*l):
Special = group(r"\r?\n", r"[:;.,`@]")
Funny = group(Operator, Bracket, Special)

PlainToken = group(Number, Funny, String, Name)
Token = Ignore + PlainToken

# First (or only) line of ' or " string.
ContStr = group(
_litprefix + r"'[^\n'\\]*(?:\\.[^\n'\\]*)*" + group("'", r"\\\r?\n"),
Expand All @@ -140,7 +137,6 @@ def _combinations(*l):
PseudoExtras = group(r"\\\r?\n", Comment, Triple)
PseudoToken = Whitespace + group(PseudoExtras, Number, Funny, ContStr, Name)

tokenprog = re.compile(Token, re.UNICODE)
pseudoprog = re.compile(PseudoToken, re.UNICODE)
single3prog = re.compile(Single3)
double3prog = re.compile(Double3)
Expand Down

0 comments on commit 7f5d0e9

Please sign in to comment.