Skip to content

Compatibility with Python 3 and improved sandbox operation - #121

Draft
amotl wants to merge 26 commits into
SecPi:devfrom
isarengineering:python3
Draft

Compatibility with Python 3 and improved sandbox operation#121
amotl wants to merge 26 commits into
SecPi:devfrom
isarengineering:python3

Conversation

@amotl

@amotl amotl commented Aug 22, 2022

Copy link
Copy Markdown

Hi there,

following up on #120, we are relatively confident this patch improves the situation on Python 3 significantly.

The patch also has some commits unrelated to Python 3 compatibility, which improve the operation in sandbox/development mode, like the temporary removal of SSL support for AMQP, and some adjustments to the logging settings. The corresponding commits will probably have to be removed and/or adjusted again.

Kudos to @Tonkenfo for making this happen.

With kind regards,
Andreas.

amotl and others added 26 commits August 15, 2022 21:36
This probably will have to be made configurable later.
This probably will have to be made configurable later.
Don't use any of 60, 30, or 10 seconds, but use 4.2 seconds instead.
This will yield faster reactions for recovery from any intermittent
problems.
This probably will have to be made configurable later.
This will probably have to be turned on again later, but for development
it is easier without.
- Use `items()` instead of `iteritems()`
- Compare character types against `str` and `bytes` instead of `unicode`
- Configure CherryPy to use UTF-8 encoding
…Video

This patch apparently fixes some threading issues which have been observed
after switching to Python 3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants