diff options
| author | Alasdair Nicol <alasdair@thenicols.net> | 2013-10-20 00:33:10 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-21 08:31:30 -0400 |
| commit | b289fcf1bfeaa717ed465b2529a275b61dc02d92 (patch) | |
| tree | 1b43958bb74005ccb93f3cd12ce4bc13d9747ab2 /django/utils/jslex.py | |
| parent | a3690168cbde5e7bee16443569ad3dedd2466af7 (diff) | |
Fixed #21288 -- Fixed E126 pep8 warnings
Diffstat (limited to 'django/utils/jslex.py')
| -rw-r--r-- | django/utils/jslex.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/django/utils/jslex.py b/django/utils/jslex.py index bf9fffb7e7..378c8b2375 100644 --- a/django/utils/jslex.py +++ b/django/utils/jslex.py @@ -143,14 +143,14 @@ class JsLexer(Lexer): ] states = { - 'div': # slash will mean division - both_before + [ - Tok("punct", literals("/= /"), next='reg'), - ] + both_after, + # slash will mean division + 'div': both_before + [ + Tok("punct", literals("/= /"), next='reg'), + ] + both_after, - 'reg': # slash will mean regex - both_before + [ - Tok("regex", + # slash will mean regex + 'reg': both_before + [ + Tok("regex", r""" / # opening slash # First character is.. @@ -174,7 +174,7 @@ class JsLexer(Lexer): / # closing slash [a-zA-Z0-9]* # trailing flags """, next='div'), - ] + both_after, + ] + both_after, } def __init__(self): |
