Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit febe5fa

Browse files
committedMar 18, 2024
Rename quit to exit for consistency
1 parent 7eef90c commit febe5fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎tools/config_editor/app.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from textual.widgets import Button, Header, Label
3838
except ImportError:
3939
print("Please install the \"textual-dev\" package before running this script.")
40-
quit(1)
40+
exit(1)
4141

4242
from settings import SettingsScreen
4343
from editor import EditorScreen
@@ -133,7 +133,7 @@ def main() -> None:
133133
# Check Python version
134134
if sys.version_info < (3, 9):
135135
print("This script requires Python 3.9 or later")
136-
quit(1)
136+
exit(1)
137137

138138
app = ConfigEditorApp()
139139

@@ -210,7 +210,7 @@ def main() -> None:
210210
app.run()
211211

212212
# Propagate the exit code from the app
213-
sys.exit(app.return_code or 0)
213+
exit(app.return_code or 0)
214214

215215
if __name__ == "__main__":
216216
# If this script is run directly, start the app

0 commit comments

Comments
 (0)
Please sign in to comment.