Skip to content

Commit

Permalink
Merge pull request #306 from asfadmin/cs/backslash-fix-3.12
Browse files Browse the repository at this point in the history
Fix for python 3.12, escape characters throw warnings
  • Loading branch information
SpicyGarlicAlbacoreRoll authored Jul 13, 2024
2 parents f04af77 + 30be150 commit 899f57f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-
-->
------
## [v7.1.4](https://github.com/asfadmin/Discovery-asf_search/compare/v7.1.3...v7.1.4)
### Fixed
- Fixes syntax warning with escaped slash in `translate.py`

------
## [v7.1.3](https://github.com/asfadmin/Discovery-asf_search/compare/v7.1.2...v7.1.3)
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion asf_search/CMR/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def translate_opts(opts: ASFSearchOptions) -> List:
# intersectsWith, temporal, and other keys you don't want to escape, so keep whitelist instead
for escape_commas in ["campaign"]:
if escape_commas in dict_opts:
dict_opts[escape_commas] = dict_opts[escape_commas].replace(",", "\,")
dict_opts[escape_commas] = dict_opts[escape_commas].replace(",", "\\,")

# Special case to unravel WKT field a little for compatibility
if "intersectsWith" in dict_opts:
Expand Down

0 comments on commit 899f57f

Please sign in to comment.