nengo / nengo-gui

Nengo interactive visualizer
Other
95 stars 38 forks source link

Update cookies.py to work with python 3.11 #1044

Open Tartasprint opened 1 month ago

Tartasprint commented 1 month ago

Since python 3.11 regex flags cannot be used in the middle of a regex. This avoids nengo-gui to crash. this fixes #1042.

There should be no additional problems since the changed variable EXPIRES_AV is local and only used in the definition of ATTR which already has the (?ix) flags.

Some escape sequences were changed to avoid SyntaxWarnings.

I don't know if the rest of nengo-gui will work with python 3.11, but at least now it can start (I'm following the tutorial to get started).