diff --git a/Lib/tokenize.py b/Lib/tokenize.py index 33c5e41d7ae..b952b365c2a 100644 --- a/Lib/tokenize.py +++ b/Lib/tokenize.py @@ -78,6 +78,7 @@ def maybe(*choices): return apply(group, choices) + '?' # longest operators first (e.g., if = came before ==, == would get # recognized as two instances of =). Operator = group(r"\*\*=?", r">>=?", r"<<=?", r"<>", r"!=", + r"//=?", r"[+\-*/%&|^=<>]=?", r"~")