!22 fix typo and grammar mistake

From: @Bolehu 
Reviewed-by: @Charlie_li 
Signed-off-by: @Charlie_li
This commit is contained in:
openeuler-ci-bot 2023-01-09 06:18:37 +00:00 committed by Gitee
commit 04eacdd4b6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 47 additions and 2 deletions

View File

@ -0,0 +1,39 @@
From 60e83271dce5cc019dbfc0935052da0904a5d425 Mon Sep 17 00:00:00 2001
From: Hongkuan Wang <hongkuan.wang@aalto.fi>
Date: Wed, 22 Sep 2021 22:13:48 +0800
Subject: [PATCH] fix typo and grammar mistake
---
src/werkzeug/filesystem.py | 2 +-
src/werkzeug/test.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/werkzeug/filesystem.py b/src/werkzeug/filesystem.py
index 36a3d12e..16eb5861 100644
--- a/src/werkzeug/filesystem.py
+++ b/src/werkzeug/filesystem.py
@@ -37,7 +37,7 @@ def get_filesystem_encoding() -> str:
because it might be different. See :ref:`filesystem-encoding` for the exact
behavior.
- The concept of a filesystem encoding in generally is not something you
+ The concept of a filesystem encoding in general is not something you
should rely on. As such if you ever need to use this function except for
writing wrapper code reconsider.
"""
diff --git a/src/werkzeug/test.py b/src/werkzeug/test.py
index d0ce6f95..7ee27477 100644
--- a/src/werkzeug/test.py
+++ b/src/werkzeug/test.py
@@ -322,7 +322,7 @@ class EnvironBuilder:
.. versionadded:: 0.15
The environ has keys ``REQUEST_URI`` and ``RAW_URI`` containing
- the path before perecent-decoding. This is not part of the WSGI
+ the path before percent-decoding. This is not part of the WSGI
PEP, but many WSGI servers include it.
.. versionchanged:: 0.6
--
2.33.0

View File

@ -1,11 +1,14 @@
%global _empty_manifest_terminate_build 0
Name: python-werkzeug
Version: 2.0.3
Release: 1
Release: 2
Summary: The comprehensive WSGI web application library.
License: BSD-3-Clause
URL: https://palletsprojects.com/p/werkzeug/
Source0: https://files.pythonhosted.org/packages/6c/a8/60514fade2318e277453c9588545d0c335ea3ea6440ce5cdabfca7f73117/Werkzeug-2.0.3.tar.gz
Patch0001: backport-fix-typo-and-grammar-mistake.patch
BuildArch: noarch
BuildRequires: python3-werkzeug
@ -124,7 +127,7 @@ providing more structure and patterns for defining powerful
applications.
%prep
%autosetup -n Werkzeug-2.0.3
%autosetup -n Werkzeug-2.0.3 -p1
%build
%py3_build
@ -167,6 +170,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} pytest -k "not (test_reloader_sys_path
%{_docdir}/*
%changelog
* Sat Jan 7 2023 Bolehu <heyaohua@xfusion.com> - 2.0.3-2
- fix typo and grammar mistake
* Fri Jun 17 2022 jiangpengju <jiangpengju2@h-partners.com> - 2.0.3-1
- Upgrade python-werkzeug version to 2.0.3