From a9d9bf281d5a8b2c626ed072098af2c9f4278949 Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Thu, 31 Jan 2019 19:00:36 +0000 Subject: [PATCH] Bug 1523562 [wpt PR 15031] - Update pyflakes to 2.1.0, a=testonly Automatic update from web-platform-tests Update pyflakes from 2.0.0 to 2.1.0 -- Fix comparison with int to use == rather than relying on interning -- wpt-commits: bae08c312f922ab1517ef2e5a14588eadc8d02c0, 2603f1314ebda48d20e2645d34ae8dda413e3484 wpt-pr: 15031 --- testing/web-platform/tests/tools/requirements_flake8.txt | 2 +- .../web-platform/tests/tools/wptrunner/wptrunner/metadata.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/web-platform/tests/tools/requirements_flake8.txt b/testing/web-platform/tests/tools/requirements_flake8.txt index d2e7dd64232a..00d182e2d0f5 100644 --- a/testing/web-platform/tests/tools/requirements_flake8.txt +++ b/testing/web-platform/tests/tools/requirements_flake8.txt @@ -1,4 +1,4 @@ flake8==3.6.0 pycodestyle==2.4.0 -pyflakes==2.0.0 +pyflakes==2.1.0 pep8-naming==0.7.0 diff --git a/testing/web-platform/tests/tools/wptrunner/wptrunner/metadata.py b/testing/web-platform/tests/tools/wptrunner/wptrunner/metadata.py index e4060f38cf43..4368a9d3c1ba 100644 --- a/testing/web-platform/tests/tools/wptrunner/wptrunner/metadata.py +++ b/testing/web-platform/tests/tools/wptrunner/wptrunner/metadata.py @@ -509,7 +509,7 @@ class PackedResultList(object): prop = prop_intern.get((packed & 0xF000) >> 12) value_idx = (packed & 0x0F00) >> 8 - if value_idx is 0: + if value_idx == 0: value = self.raw_data[idx] else: value = status_intern.get(value_idx)