pottery
pottery copied to clipboard
PYTHONOPTIMIZE 2 is breaking import of pottery
Describe the bug The code crashes when importing pottery with PYTHONOPTIMIZE=2 set.
To Reproduce Steps to reproduce the behavior:
- import pottery
- set enviroment variable PYTHONOPTIMIZE=2
- run the script
- See error
Expected behavior Successful import
Environment (please complete the following information):
- OS: Linux
- Python version: 3.11.5
- Redis version: not applicable
Suggested patch: init.py: 36 - __description__: Final[str] = __doc__.split(sep='\n\n', maxsplit=1)[0] + __description__: Final[str] = __doc__.split(sep='\n\n', maxsplit=1)[0] if __doc__ else ''
Some notes about PYTHONOPTIMIZE
https://ziade.org/2015/11/25/should-i-use-pythonoptimize/