summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2017-06-03 16:40:34 +0300
committerClaudiu Popa <pcmanticore@gmail.com>2017-06-03 16:46:27 +0300
commitdbd50d90306f1a65f046ce2bdea2a78f21e46495 (patch)
treec947dac146c019e5c646a1812ff2f40a1db14f74
parente63a54dc9619b8ea704533a5a7665e8e1ae799fb (diff)
downloadpylint-git-dbd50d90306f1a65f046ce2bdea2a78f21e46495.tar.gz
Use unicode for the unsplit ends. Close #1426
-rw-r--r--pylint/checkers/format.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/pylint/checkers/format.py b/pylint/checkers/format.py
index 1c5b0e93a..691b41bcf 100644
--- a/pylint/checkers/format.py
+++ b/pylint/checkers/format.py
@@ -1006,7 +1006,17 @@ class FormatChecker(BaseTokenChecker):
return i + 1
unsplit_ends = {
- '\v', '\x0b', '\f', '\x0c', '\x1c', '\x1d', '\x1e', '\x85', '\u2028', '\u2029'}
+ u'\v',
+ u'\x0b',
+ u'\f',
+ u'\x0c',
+ u'\x1c',
+ u'\x1d',
+ u'\x1e',
+ u'\x85',
+ u'\u2028',
+ u'\u2029'
+ }
unsplit = []
for line in lines.splitlines(True):
if line[-1] in unsplit_ends: