Skip to content

Commit

Permalink
refactor: autofix issues in 2 files
Browse files Browse the repository at this point in the history
Resolved issues in the following files with DeepSource Autofix:
1. concat/__main__.py
2. concat/stdlib/repl.py
  • Loading branch information
deepsource-autofix[bot] committed Mar 3, 2024
1 parent 3c32cd5 commit e27a031
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion concat/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,6 @@ def create_parsing_failure_message(
import_resolution_start_directory=source_dir,
)
if list(concat_ast.parsing_failures):
exit(1)
sys.exit(1)
finally:
args.file.close()
2 changes: 1 addition & 1 deletion concat/stdlib/repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def read_quot(
def _exit_repl() -> NoReturn:
print_exit_message()
# TODO: Don't exit the whole program because we can nest REPLs.
exit()
sys.exit()


def print_exit_message() -> None:
Expand Down

0 comments on commit e27a031

Please sign in to comment.