From 6fbc16e4e4939c5af2fff167e6aaf133fb160cfb Mon Sep 17 00:00:00 2001 From: Lewis Sobotkiewicz Date: Tue, 6 Feb 2024 07:04:10 +0000 Subject: [PATCH] Use latest version of flake8 --- .github/workflows/ci.yml | 2 +- pycksum/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0dfcc3..eb9a3fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip setuptools - pip install -q flake8==6.0.0 + pip install -q flake8 - name: Flake8 static code analysis run: | diff --git a/pycksum/__init__.py b/pycksum/__init__.py index b12fa90..80f6e59 100644 --- a/pycksum/__init__.py +++ b/pycksum/__init__.py @@ -292,7 +292,7 @@ def reset(self): self._ck = 0 def _add(self, b): - if type(b) == str: # Convert strings to bytes + if type(b) is str: # Convert strings to bytes b = str.encode(b) self._ck, incsz = _memcksum(b, self._ck) self._sz += incsz