Skip to content

Commit

Permalink
Use latest version of flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
sobotklp committed Feb 6, 2024
1 parent 441b783 commit 6fbc16e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion pycksum/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fbc16e

Please sign in to comment.