summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-06-27 08:39:54 +0200
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-06-27 08:39:54 +0200
commitedab8dee4894170d49eeaba1c27e55c317951921 (patch)
tree06cea1e7445b88128677874825d1cd773a8a8a6a
parentbb20999aefc394fb826371764146bf61d8e572e2 (diff)
downloadpep8-edab8dee4894170d49eeaba1c27e55c317951921.tar.gz
Fix crash, and release 1.3.3; issue #98.1.3.3
-rw-r--r--CHANGES.txt6
-rwxr-xr-xpep8.py3
-rw-r--r--testsuite/E12not.py9
3 files changed, 17 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 0f117f6..24fe412 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,12 @@ Changelog
=========
+1.3.3 (2012-06-27)
+------------------
+
+* Fix regression with continuation line checker. (Issue #98)
+
+
1.3.2 (2012-06-26)
------------------
diff --git a/pep8.py b/pep8.py
index 73fad1a..35072ec 100755
--- a/pep8.py
+++ b/pep8.py
@@ -93,7 +93,7 @@ for space.
"""
-__version__ = '1.3.2'
+__version__ = '1.3.3'
import os
import sys
@@ -472,6 +472,7 @@ def continuation_line_indentation(logical_line, tokens, indent_level, verbose):
# visual indents
indent = [indent_level]
indent_chances = {}
+ last_indent = (0, 0)
if verbose >= 3:
print(">>> " + tokens[0][4].rstrip())
diff --git a/testsuite/E12not.py b/testsuite/E12not.py
index d8bc030..efa262d 100644
--- a/testsuite/E12not.py
+++ b/testsuite/E12not.py
@@ -521,4 +521,13 @@ rv.update(dict.fromkeys(
'reasonComment_de', 'reasonComment_it'),
'?'), "foo",
context={'alpha': 4, 'beta': 53242234, 'gamma': 17})
+
+
+def f():
+ try:
+ if not Debug:
+ print('''
+If you would like to see debugging output,
+try: %s -d5
+''' % sys.argv[0])
#