Skip to content

Commit 6788152

Browse files
committed
Add trailing \n
1 parent 00b7b1f commit 6788152

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

aishell/models/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .open_ai_response_model import OpenAIResponseModel as OpenAIResponseModel
1+
from .open_ai_response_model import OpenAIResponseModel as OpenAIResponseModel

aishell/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from .make_executable_command import make_executable_command as make_executable_command
1+
from .make_executable_command import make_executable_command as make_executable_command

aishell/utils/make_executable_command.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
def make_executable_command(command: str) -> str:
2-
# starting '\n' or trailing '\n' should be replaced as ''
3-
# starting ' ' or trailing ' ' should be replaced as ''
42
if command.startswith('\n'):
53
command = command[1:]
64
if command.endswith('\n'):

0 commit comments

Comments
 (0)