Skip to content

Commit 8535013

Browse files
committed
pylint refactoring
1 parent 2807deb commit 8535013

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/performance_sitespeed_io.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ def run_test(global_translation, lang_code, url):
8989
reference_result_dict = None
9090
use_reference = validator_result_dict['use_reference']
9191
if use_reference:
92-
if validator['name'].startswith('mobile'):
92+
if validator_name.startswith('mobile'):
9393
reference_name = 'mobile'
9494
reference_rating = mobile_rating.get_overall()
9595
reference_result_dict = mobile_result_dict
96-
if validator['name'].startswith('desktop'):
96+
if validator_name.startswith('desktop'):
9797
reference_name = 'desktop'
9898
reference_rating = desktop_rating.get_overall()
9999
reference_result_dict = desktop_result_dict
@@ -345,7 +345,7 @@ def rate_result_dict(result_dict, reference_result_dict,
345345
def get_result_dict(data, mode):
346346
result_dict = {}
347347
tmp_dict = {}
348-
regex = r"(?P<name>TTFB|DOMContentLoaded|firstPaint|FCP|LCP|Load|TBT|CLS|FirstVisualChange|SpeedIndex|VisualComplete85|LastVisualChange)\:[ ]{0,1}(?P<value>[0-9\.ms]+)"
348+
regex = r"(?P<name>TTFB|DOMContentLoaded|firstPaint|FCP|LCP|Load|TBT|CLS|FirstVisualChange|SpeedIndex|VisualComplete85|LastVisualChange)\:[ ]{0,1}(?P<value>[0-9\.ms]+)" # pylint: disable=line-too-long
349349
matches = re.finditer(regex, data, re.MULTILINE)
350350

351351
for _, match in enumerate(matches, start=1):

0 commit comments

Comments
 (0)