Skip to content

Commit a4d0d7e

Browse files
committed
Use new function for splitting
1 parent f59d00c commit a4d0d7e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jupyterlab_git/git.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ async def changed_files(self, base=None, remote=None, single_commit=None):
200200
response["command"] = " ".join(cmd)
201201
response["message"] = error
202202
else:
203-
response["files"] = output.strip("\x00").split("\x00")
203+
response["files"] = self.strip_and_split(output)
204204

205205
return response
206206

@@ -256,7 +256,7 @@ async def status(self, current_path):
256256
}
257257

258258
result = []
259-
line_iterable = iter(my_output.strip("\x00").split('\x00'))
259+
line_iterable = iter(self.strip_and_split(my_output))
260260
result = []
261261
for line in line_iterable:
262262
x = line[0]
@@ -388,7 +388,7 @@ async def diff(self, top_repo_path):
388388
return {"code": code, "command": " ".join(cmd), "message": my_error}
389389

390390
result = []
391-
line_array = my_output.strip('\x00').split('\x00')
391+
line_array = strip_and_split(my_output)
392392
for line in line_array:
393393
linesplit = line.split()
394394
result.append(

0 commit comments

Comments
 (0)