public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kdevelop-python] f44: fix documentation_files syntax errors
@ 2026-07-04  0:59 Kevin Kofler
  0 siblings, 0 replies; only message in thread
From: Kevin Kofler @ 2026-07-04  0:59 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/kdevelop-python
            Branch : f44
            Commit : 3440aaac0bbe91e5c5c724ffb3c4049eebc38aed
            Author : Kevin Kofler <Kevin@tigcc.ticalc.org>
            Date   : 2014-09-27T03:30:04+02:00
            Stats  : +42/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/kdevelop-python/c/3440aaac0bbe91e5c5c724ffb3c4049eebc38aed?branch=f44

            Log:
            fix documentation_files syntax errors

remove bogus autogenerated set"other methods from
documentation_files/__builtin_types__.py that are actually the < and >
operators, not methods - the bogus syntax (quote in identifier) makes
the brp-python-bytecompile script choke

---
diff --git a/kdev-python-1.7.0-py3-doc-syntax.patch b/kdev-python-1.7.0-py3-doc-syntax.patch
new file mode 100644
index 0000000..183d880
--- /dev/null
+++ b/kdev-python-1.7.0-py3-doc-syntax.patch
@@ -0,0 +1,33 @@
+diff -ur kdev-python-1.7.0-py3/documentation_files/__builtin_types__.py kdev-python-1.7.0-py3-doc-syntax/documentation_files/__builtin_types__.py
+--- kdev-python-1.7.0-py3/documentation_files/__builtin_types__.py	2014-08-30 16:49:01.000000000 +0200
++++ kdev-python-1.7.0-py3-doc-syntax/documentation_files/__builtin_types__.py	2014-09-27 03:24:55.000000000 +0200
+@@ -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

diff --git a/kdevelop-python.spec b/kdevelop-python.spec
index a6d3d67..e431fbd 100644
--- a/kdevelop-python.spec
+++ b/kdevelop-python.spec
@@ -10,6 +10,12 @@ Source0:    http://download.kde.org/stable/kdevelop/%{kdevelop_version}/src/kdev
 # ensure the installed Python 3 scripts have #!/usr/bin/env python3
 Patch0:     kdev-python-1.7.0-py3-shebang.patch
 
+# remove bogus autogenerated set"other methods from
+# documentation_files/__builtin_types__.py that are actually the < and >
+# operators, not methods - the bogus syntax (quote in identifier) makes the
+# brp-python-bytecompile script choke
+Patch1:     kdev-python-1.7.0-py3-doc-syntax.patch
+
 Summary:    Python 3 Plugin for KDevelop
 URL:        https://www.kdevelop.org/
 
@@ -30,7 +36,10 @@ Python 3 language support for the KDevelop Integrated Development Environment.
 %prep
 %setup -qn kdev-python-%{version}%{?py3_suffix}
 # don't use backups because CMakeLists.txt installs the whole directory
+# shebang
 %patch0 -p1
+# doc-syntax
+%patch1 -p1
 
 %build
 mkdir -p %{_target_platform}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-04  0:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-04  0:59 [rpms/kdevelop-python] f44: fix documentation_files syntax errors Kevin Kofler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox