void-packages/srcpkgs/kdevelop-python/patches/kdev-python-1.7.0-py3-doc-syntax.patch
Đoàn Trần Công Danh dd9d4a1979 srcpkgs/k*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

39 lines
932 B
Diff

remove bogus autogenerated '' set"other '' methods that are actually the < and >
operators, not methods - the bogus syntax (quote in identifier) makes the
Byte-compiling python fails on this file at package installation.
source: https://src.fedoraproject.org/rpms/kdevelop-python/raw/master/f/kdev-python-1.7.0-py3-doc-syntax.patch
--- a/documentation_files/__builtin_types__.py
+++ b/documentation_files/__builtin_types__.py
@@ -44,14 +44,6 @@
"""
pass
- def set"other(self, ():
- """
- Test whether the set is a true subset of *other*, that is,
- ``set <= other and set != other``.
-
- """
- pass
-
def issuperset(self, other):
"""set >= other
@@ -59,14 +51,6 @@
"""
pass
-
- def set"other(self, ():
- """
- Test whether the set is a true superset of *other*, that is, ``set >=
- other and set != other``.
-
- """
- pass
def union(self, other,more):
"""set | other | more