Linting
This commit is contained in:
@@ -640,7 +640,7 @@ class Terminal(object):
|
|||||||
|
|
||||||
pager = os.getenv('RTV_PAGER')
|
pager = os.getenv('RTV_PAGER')
|
||||||
if pager is None:
|
if pager is None:
|
||||||
pager = os.getenv('PAGER') or 'less'
|
pager = os.getenv('PAGER') or 'less'
|
||||||
command = shlex.split(pager)
|
command = shlex.split(pager)
|
||||||
|
|
||||||
if wrap:
|
if wrap:
|
||||||
@@ -912,7 +912,7 @@ class Terminal(object):
|
|||||||
flags = re.MULTILINE | re.DOTALL
|
flags = re.MULTILINE | re.DOTALL
|
||||||
pattern = '<!--{token}(.*?){token}-->'.format(token=TOKEN)
|
pattern = '<!--{token}(.*?){token}-->'.format(token=TOKEN)
|
||||||
text = re.sub(pattern, '', text, flags=flags)
|
text = re.sub(pattern, '', text, flags=flags)
|
||||||
return re.sub('\A[\s\n]*\n', '', text, flags=flags).rstrip()
|
return re.sub(r'\A[\s\n]*\n', '', text, flags=flags).rstrip()
|
||||||
|
|
||||||
def clear_screen(self):
|
def clear_screen(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user