Skip to content

fix cgi escape will not import #97#105

Closed
henrythemouse wants to merge 64 commits into3.5.xfrom
master
Closed

fix cgi escape will not import #97#105
henrythemouse wants to merge 64 commits into3.5.xfrom
master

Conversation

@henrythemouse
Copy link
Copy Markdown

The psp module had not been updated


-from cgi import escape

+try:
+    from html import escape
+except:
+    from cgi import escape


grisha and others added 30 commits December 17, 2013 23:53
generated (skip it if it's a tag or no git available or we are not
working with a checkin), also fix a bash-dependency (helps on Solaris),
and a couple of cross-platform awk fixes in configure.
Fitler -> Filter
…to client

Without the "expires" attribute in the _valid_attr list, cookie expirations are never returned by the __str__ method, and consequently are never sent to the browser.
Revert to mod_python 3.3.1 semantics where cookie expiration is sent to client
small issue like this shouldn't take 2 months to fix
#22
Test fail if MPMs loaded modularly
Accept APXSFLAGS argument to apxs
Create $(DESTDIR)$(BINDIR) if needed (i.e. when building rpm package
Decode query string as UTF8 as per RFC3986 section 2.5.
…m prefixes. It bases its location on the location of the Python binary, which is not ideal but fine for now.
…logging of the apache error log with deprecation warnings
simple bug fix in Session.py >> DbmSesssion >> dbm_cleanup for conflicting use of dbm variable
grisha and others added 25 commits March 12, 2018 21:49
Fix __slots__ error with metaCookie #71
_PyImport_FixupExtensionObject now takes four arguments.
The libpython library is now 2-digit versioned (at least on Debian), so
use -lpython3.7 not -lpython3 at link time.
The StringField class subclasses bytes, which needs a str() as its
initialiser.
Py_GetPath() and Py_GetProgramFullPath() return wide-char strings,
so use %ls when printing.
Python provides a way to query the library name to link against, so use it.
This allows for distributions that name their libraries with various suffices
(like libpython3.5m.so) where it's not just the version that's important.
I've now tested with pytohon 2.7, 3.6, and 3.7, and all three build.
Fix compilation with python 3.7
Ensure backwards compatibility with Python2
deocding bytes string before typecasting to str
using Py_XDECREF instead of Py_DECREF and fixing error in pares_qs function
Patch-Name: 05_fix_spelling.patch
Signed-off-by: Emmanuel Arias <[email protected]>
Simple spelling fix in Python docstring (thanks lintian)
imp module is deprecated in v3 so in place of it using importlib
Fix for incorrect configure python library variable
@grisha
Copy link
Copy Markdown
Owner

grisha commented Jul 26, 2021

I think there is something wrong with this pull request, it has waaay to many changes in it :)

Modifies import of escape to reflect removal from the cgi module in p…
@grisha
Copy link
Copy Markdown
Owner

grisha commented Jul 26, 2021

I just merged #104 - closing this one, thanks!

@grisha grisha closed this Jul 26, 2021
@henrythemouse
Copy link
Copy Markdown
Author

Must have something to do with the 'compare' selection, didn't really understand what was needed there.
Thanks for your help.

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.