Bas Couwenberg pushed to branch master at Debian GIS Project / pycsw
Commits: fc007ed4 by Bas Couwenberg at 2020-01-18T17:13:43+01:00 Add patch to fix SyntaxWarning issues with Python 3.8. - - - - - 3 changed files: - debian/changelog - + debian/patches/python3.8-SyntaxWarning.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +pycsw (2.4.2+dfsg-2) UNRELEASED; urgency=medium + + * Add patch to fix SyntaxWarning issues with Python 3.8. + + -- Bas Couwenberg <[email protected]> Sat, 18 Jan 2020 17:10:00 +0100 + pycsw (2.4.2+dfsg-1) unstable; urgency=medium * Team upload. ===================================== debian/patches/python3.8-SyntaxWarning.patch ===================================== @@ -0,0 +1,37 @@ +Description: Fix SyntaxWarning issues with Python 3.8. +Author: Bas Couwenberg <[email protected]> +Forwarded: https://github.com/geopython/pycsw/pull/606 + +--- a/pycsw/ogc/csw/csw2.py ++++ b/pycsw/ogc/csw/csw2.py +@@ -714,7 +714,7 @@ class Csw2(object): + LOGGER.debug('OpenSearch Geo/Time parameters detected.') + self.parent.kvp['constraintlanguage'] = 'FILTER' + tmp_filter = opensearch.kvp2filterxml(self.parent.kvp, self.parent.context) +- if tmp_filter is not "": ++ if tmp_filter != "": + self.parent.kvp['constraint'] = tmp_filter + LOGGER.debug('OpenSearch Geo/Time parameters to Filter: %s.', self.parent.kvp['constraint']) + +--- a/pycsw/ogc/csw/csw3.py ++++ b/pycsw/ogc/csw/csw3.py +@@ -742,7 +742,7 @@ class Csw3(object): + except Exception as err: + return self.exceptionreport('InvalidParameterValue', 'bbox', str(err)) + +- if tmp_filter is not "": ++ if tmp_filter != "": + self.parent.kvp['constraint'] = tmp_filter + LOGGER.debug('OpenSearch Geo/Time parameters to Filter: %s.', self.parent.kvp['constraint']) + +--- a/pycsw/opensearch.py ++++ b/pycsw/opensearch.py +@@ -350,7 +350,7 @@ def kvp2filterxml(kvp, context): + if time_list == ['', '']: + par_count -= 1 + # One of two is empty +- elif time_list[1] is '': ++ elif time_list[1] == '': + time_element = etree.Element(util.nspath_eval('ogc:PropertyIsGreaterThanOrEqualTo', + context.namespaces)) + el = etree.Element(util.nspath_eval('ogc:PropertyName', ===================================== debian/patches/series ===================================== @@ -2,3 +2,4 @@ 0002-Remove-externally-linked-files.patch 0006-Don-t-include-external-references-to-images.patch version-requirements.patch +python3.8-SyntaxWarning.patch View it on GitLab: https://salsa.debian.org/debian-gis-team/pycsw/commit/fc007ed43be606c34c0dbd8b8f718b8286f2651a -- View it on GitLab: https://salsa.debian.org/debian-gis-team/pycsw/commit/fc007ed43be606c34c0dbd8b8f718b8286f2651a You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ Pkg-grass-devel mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel
