Skip to content

Commit

Permalink
release 0.0.62 (#54)
Browse files Browse the repository at this point in the history
* add exit to builtins

---------

Co-authored-by: nggit <[email protected]>
  • Loading branch information
nggit and nggit authored Nov 26, 2024
1 parent d484cdb commit 81400e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions examples/exit.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

import sys

from httpout import __server__

print('Hello, ', end='')

if __server__['QUERY_STRING']:
sys.exit(__server__['QUERY_STRING'] + '!\n')
exit(__server__['QUERY_STRING'] + '!\n')

sys.exit(0)
exit(0)
2 changes: 1 addition & 1 deletion httpout/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2024 nggit

__version__ = '0.0.61'
__version__ = '0.0.62'
__all__ = ('HTTPOut',)

from .httpout import HTTPOut # noqa: E402
1 change: 1 addition & 0 deletions httpout/httpout.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ def ho_import(name, globals=None, locals=None, fromlist=(), level=0):

builtins.__import__ = ho_import
builtins.__globals__ = worker['__globals__']
builtins.exit = sys.exit

g.wait = wait
g.caches = {}
Expand Down

0 comments on commit 81400e1

Please sign in to comment.