fix several issues

This commit is contained in:
zhangruifang2020 2022-10-24 14:49:39 +08:00
parent 8211cfcdcb
commit 20f81d38df
2 changed files with 36 additions and 4 deletions

View File

@ -0,0 +1,25 @@
From d9ec0f5f74975dfb4ebcc18efeb4cee69aa8e788 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20K=C3=B6gl?= <stefan@skoegl.net>
Date: Sun, 10 Apr 2022 13:36:37 +0200
Subject: [PATCH] Fix invalid escape sequence (#50)
---
tests.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests.py b/tests.py
index dafbe89..9252369 100755
--- a/tests.py
+++ b/tests.py
@@ -129,7 +129,7 @@ class SpecificationTests(unittest.TestCase):
("/c%d", ['c%d']),
("/e^f", ['e^f']),
("/g|h", ['g|h']),
- ("/i\\j", ['i\j']),
+ ("/i\\j", ['i\\j']),
("/k\"l", ['k"l']),
("/ ", [' ']),
("/m~0n", ['m~n']),
--
2.27.0

View File

@ -2,11 +2,14 @@
Name: python-%{pypi_name}
Version: 2.2
Release: 1
Release: 2
Summary: Resolve JSON Pointers in Python
License: BSD
URL: https://github.com/stefankoegl/python-json-pointer
Source0: https://pypi.io/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch0: backport-fix-invalid-escape-sequence-50.patch
BuildArch: noarch
%description
@ -51,16 +54,20 @@ ln -s ./jsonpointer-%{python3_version} %{buildroot}%{_bindir}/jsonpointer
%doc README.md
%changelog
* Tue Nov 23 liudabo <liudabo1@huawei.com> - 2.2-1
* Mon Oct 24 2022 zhangruifang <zhangruifang1@h-partners.com> - 2.2-2
- fix invalid escape sequence
- fix bad date in changelog
* Tue Nov 23 2021 liudabo <liudabo1@huawei.com> - 2.2-1
- upgrade version to 2.2
* Thu Oct 29 tianwei <tianwei12@huawei.com> - 2.0-2
* Thu Oct 29 2020 tianwei <tianwei12@huawei.com> - 2.0-2
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:delete python2
* Thu Jul 23 dingyue <dingyue5@huawei.com> - 2.0-1
* Thu Jul 23 2020 dingyue <dingyue5@huawei.com> - 2.0-1
- Type:enhancement
- ID:NA
- SUG:NA