You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
running py4web under Python 3.10 got this error when rendering some output assembled with
CAT(string, TABLE(...)) received this error:
Traceback (most recent call last):
File "C:\Users/David/SkyDrive/py4web\py4web\core.py", line 163, in safely
return func()
File "C:\Users/David/SkyDrive/py4web\py4web\core.py", line 503, in
lambda: data.xml(), default=lambda: self._to_html(self._to_unicode(data))
File "c:\Users\David\SkyDrive\py4web\venv\lib\site-packages\yatl\helpers.py", line 397, in xml
return "".join(
File "c:\Users\David\SkyDrive\py4web\venv\lib\site-packages\yatl\helpers.py", line 398, in
s.xml() if isinstance(s, TAGGER) else xmlescape(unicode(s))
NameError: name 'unicode' is not defined
I don't think unicode() exists in Python 3, as used in helpers.py line 398?
The text was updated successfully, but these errors were encountered:
On Thu, 2 Mar 2023 at 15:01, David Manns ***@***.***> wrote:
running py4web under Python 3.10 got this error when rendering some output
assembled with
CAT(string, TABLE(...)) received this error:
Traceback (most recent call last):
File "C:\Users/David/SkyDrive/py4web\py4web\core.py", line 163, in safely
return func()
File "C:\Users/David/SkyDrive/py4web\py4web\core.py", line 503, in
lambda: data.xml(), default=lambda: self._to_html(self._to_unicode(data))
File
"c:\Users\David\SkyDrive\py4web\venv\lib\site-packages\yatl\helpers.py",
line 397, in xml
return "".join(
File
"c:\Users\David\SkyDrive\py4web\venv\lib\site-packages\yatl\helpers.py",
line 398, in
s.xml() if isinstance(s, TAGGER) else xmlescape(unicode(s))
NameError: name 'unicode' is not defined
I don't think unicode() exists in Python 3, as used in helpers.py line 398?
—
Reply to this email directly, view it on GitHub
<#38>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHLZT2SOTLZJVZ4AVOJZBLW2EREFANCNFSM6AAAAAAVN7C7FA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
running py4web under Python 3.10 got this error when rendering some output assembled with
CAT(string, TABLE(...)) received this error:
Traceback (most recent call last):
File "C:\Users/David/SkyDrive/py4web\py4web\core.py", line 163, in safely
return func()
File "C:\Users/David/SkyDrive/py4web\py4web\core.py", line 503, in
lambda: data.xml(), default=lambda: self._to_html(self._to_unicode(data))
File "c:\Users\David\SkyDrive\py4web\venv\lib\site-packages\yatl\helpers.py", line 397, in xml
return "".join(
File "c:\Users\David\SkyDrive\py4web\venv\lib\site-packages\yatl\helpers.py", line 398, in
s.xml() if isinstance(s, TAGGER) else xmlescape(unicode(s))
NameError: name 'unicode' is not defined
I don't think unicode() exists in Python 3, as used in helpers.py line 398?
The text was updated successfully, but these errors were encountered: