Skip to content

Commit

Permalink
release 0.0.70 (#62)
Browse files Browse the repository at this point in the history
* give filename

---------

Co-authored-by: nggit <[email protected]>
  • Loading branch information
nggit and nggit authored Dec 12, 2024
1 parent 45cab0d commit 0285979
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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.69'
__version__ = '0.0.70'
__all__ = ('HTTPOut',)

from .httpout import HTTPOut # noqa: E402
2 changes: 1 addition & 1 deletion httpout/utils/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def exec_module(module, code=None, max_size=8 * 1048576):
raise ValueError(f'File {module.__file__} exceeds the max_size')

with open(module.__file__, 'r') as f:
code = compile(f.read(), '<string>', 'exec')
code = compile(f.read(), module.__file__, 'exec')
exec(code, module.__dict__) # nosec B102

return code
Expand Down
2 changes: 1 addition & 1 deletion httpout/utils/modules.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def exec_module(module, code=None, size_t max_size=8 * 1048576):

fclose(fp)

code = compile(data, '<string>', 'exec')
code = compile(data, module.__file__, 'exec')
exec(code, module.__dict__)

return code
Expand Down

0 comments on commit 0285979

Please sign in to comment.