Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#361)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.2.0 → v4.3.0](pre-commit/pre-commit-hooks@v4.2.0...v4.3.0)
- [github.com/asottile/pyupgrade: v2.33.0 → v2.34.0](asottile/pyupgrade@v2.33.0...v2.34.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Jun 14, 2022
1 parent d5afc61 commit f2d89b9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
rev: v4.3.0
hooks:
- id: no-commit-to-branch
args: [--branch, main]
Expand All @@ -13,7 +13,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v2.33.0
rev: v2.34.0
hooks:
- id: pyupgrade
args: [ --py36-plus ]
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def read_raw(self, size=-1):
if size >= 0:
return self._filelike.read(size)
elif size == -1:
result = bytes()
result = b""
c = b""
while c != self._terminator.encode("utf-8"):
c = self._filelike.read(1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def read_raw(self, size=-1):
"""
if self._stdin is not None:
if size == -1 or size is None:
result = bytes()
result = b""
if self._terminator:
while result.endswith(self._terminator.encode("utf-8")) is False:
c = self._stdin.read(1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def read_raw(self, size=-1):
resp = self._conn.read(size)
return resp
elif size == -1:
result = bytes()
result = b""
# If the terminator is empty, we can't use endswith, but must
# read as many bytes as are available.
# On the other hand, if terminator is nonempty, we can check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def read_raw(self, size=-1):
if size >= 0:
return self._conn.recv(size)
elif size == -1:
result = bytes()
result = b""
while result.endswith(self._terminator.encode("utf-8")) is False:
c = self._conn.recv(1)
if c == b"":
Expand Down

0 comments on commit f2d89b9

Please sign in to comment.