Skip to content

Commit cced40a

Browse files
author
Kar Epker
committed
Changed line continuations to satisfy pylint.
1 parent 6cbc66b commit cced40a

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

markdown/blockprocessors.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -311,16 +311,18 @@ class OListProcessor(BlockProcessor):
311311
def __init__(self, parser):
312312
BlockProcessor.__init__(self, parser)
313313
# Detect an item (``1. item``). ``group(1)`` contains contents of item.
314-
self.RE = re.compile(''.join([
315-
r'^[ ]{0,', str(self.tab_length - 1), r'}\d+\.[ ]+(.*)']))
314+
self.RE = re.compile(
315+
''.join([r'^[ ]{0,', str(self.tab_length - 1),
316+
r'}\d+\.[ ]+(.*)']))
316317
# Detect items on secondary lines. they can be of either list type.
317-
self.CHILD_RE = re.compile(''.join([
318-
r'^[ ]{0,', str(self.tab_length - 1), '}((\d+\.)|[*+-])[ ]+(.*)']))
318+
self.CHILD_RE = re.compile(
319+
''.join([r'^[ ]{0,', str(self.tab_length - 1),
320+
r'}((\d+\.)|[*+-])[ ]+(.*)']))
319321
# Detect indented (nested) items of either type
320-
self.INDENT_RE = re.compile(''.join([
321-
r'^[ ]{', str(self.tab_length), ',', str(self.tab_length * 2 - 1),
322-
r'}((\d+\.)|[*+-])[ ]+.*']))
323-
322+
self.INDENT_RE = re.compile(
323+
''.join([r'^[ ]{', str(self.tab_length), ',',
324+
str(self.tab_length * 2 - 1),
325+
r'}((\d+\.)|[*+-])[ ]+.*']))
324326

325327
def test(self, parent, block):
326328
return bool(self.RE.match(block))
@@ -419,8 +421,9 @@ class UListProcessor(OListProcessor):
419421
def __init__(self, parser):
420422
OListProcessor.__init__(self, parser)
421423
# Detect an item (``1. item``). ``group(1)`` contains contents of item.
422-
self.RE = re.compile(''.join([
423-
r'^[ ]{0,', str(self.tab_length - 1), r'}[*+-][ ]+(.*)']))
424+
self.RE = re.compile(
425+
''.join([r'^[ ]{0,', str(self.tab_length - 1),
426+
r'}[*+-][ ]+(.*)']))
424427

425428

426429
class HashHeaderProcessor(BlockProcessor):

markdown/extensions/sane_lists.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ class SaneOListProcessor(OListProcessor):
2828

2929
def __init__(self, parser):
3030
OListProcessor.__init__(self, parser)
31-
self.CHILD_RE = re.compile(''.join([
32-
r'^[ ]{0,', str(self.tab_length - 1), r'}((\d+\.))[ ]+(.*)']))
31+
self.CHILD_RE = re.compile(
32+
''.join([r'^[ ]{0,', str(self.tab_length - 1),
33+
r'}((\d+\.))[ ]+(.*)']))
3334

3435

3536
class SaneUListProcessor(UListProcessor):
@@ -38,8 +39,9 @@ class SaneUListProcessor(UListProcessor):
3839

3940
def __init__(self, parser):
4041
UListProcessor.__init__(self, parser)
41-
self.CHILD_RE = re.compile(''.join([
42-
r'^[ ]{0,', str(self.tab_length - 1), r'}(([*+-]))[ ]+(.*)']))
42+
self.CHILD_RE = re.compile(
43+
''.join([r'^[ ]{0,', str(self.tab_length - 1),
44+
r'}(([*+-]))[ ]+(.*)']))
4345

4446

4547
class SaneListExtension(Extension):

0 commit comments

Comments
 (0)