Skip to content

Commit 805e808

Browse files
committed
ruff lint
1 parent 1196b8d commit 805e808

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

pygit2/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def check_error(err, io=False):
4242
# Error message
4343
giterr = C.git_error_last()
4444
if giterr != ffi.NULL:
45-
message = ffi.string(giterr.message).decode('utf8',errors='surrogateescape')
45+
message = ffi.string(giterr.message).decode('utf8', errors='surrogateescape')
4646
else:
4747
message = f'err {err} (no message provided)'
4848

test/test_nonunicode.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,9 @@ def test_nonunicode_branchname(testrepo):
3737
if os.path.exists(folderpath):
3838
shutil.rmtree(folderpath)
3939
newrepo = pygit2.clone_repository(
40-
path=folderpath,
41-
url='https://github.com/pygit2/test_branch_notutf.git'
42-
)
40+
path=folderpath, url='https://github.com/pygit2/test_branch_notutf.git'
41+
)
4342
assert bstring in [
4443
(ref.split('/')[-1]).encode('utf8', 'surrogateescape')
4544
for ref in newrepo.listall_references()
46-
] # Remote branch among references: 'refs/remotes/origin/\udcc3master'
45+
] # Remote branch among references: 'refs/remotes/origin/\udcc3master'

0 commit comments

Comments
 (0)