Skip to content

Commit

Permalink
Define new builtins 'quit' and 'exit'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Clary committed Jan 19, 2022
1 parent 601fff6 commit 899419a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion py2app/apptemplate/lib/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ def getusersitepackages():
del sys.setdefaultencoding

import builtins # noqa: E402

import _sitebuiltins # noqa: E402

builtins.help = _sitebuiltins._Helper()
builtins.quit = _sitebuiltins.Quitter('quit', 'Ctrl-D (i.e. EOF)')
builtins.exit = _sitebuiltins.Quitter('exit', 'Ctrl-D (i.e. EOF)')
3 changes: 2 additions & 1 deletion py2app/bundletemplate/lib/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ def getusersitepackages():
del sys.setdefaultencoding

import builtins # noqa: E402

import _sitebuiltins # noqa: E402

builtins.help = _sitebuiltins._Helper()
builtins.quit = _sitebuiltins.Quitter('quit', 'Ctrl-D (i.e. EOF)')
builtins.exit = _sitebuiltins.Quitter('exit', 'Ctrl-D (i.e. EOF)')

0 comments on commit 899419a

Please sign in to comment.