Skip to content

Commit 63dc46e

Browse files
committed
Fix a crash with E125 on multi-line strings; closes #263
1 parent bbf35c8 commit 63dc46e

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

CHANGES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ Changelog
22
=========
33

44

5+
1.5.x (unreleased)
6+
------------------
7+
8+
* Fix a crash with E125 on multi-line strings. (Issue #263)
9+
10+
511
1.5 (2014-03-26)
612
----------------
713

pep8.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
700 statements
4646
900 syntax error
4747
"""
48-
__version__ = '1.5.0'
48+
__version__ = '1.5.1a0'
4949

5050
import os
5151
import sys
@@ -442,6 +442,7 @@ def continued_indentation(logical_line, tokens, indent_level, hang_closing,
442442
# visual indents
443443
indent_chances = {}
444444
last_indent = tokens[0][2]
445+
visual_indent = None
445446
# for each depth, memorize the visual indent column
446447
indent = [last_indent[1]]
447448
if verbose >= 3:

testsuite/E12.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,4 +347,8 @@ def example_issue254():
347347
),
348348
dict(name=token.undefined)
349349
)]
350+
#: E125
351+
if ("""
352+
"""):
353+
pass
350354
#:

0 commit comments

Comments
 (0)