public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kevin Kofler <Kevin@tigcc.ticalc.org>
To: git-commits@fedoraproject.org
Subject: [rpms/kdevelop-python] f44: fix documentation_files syntax errors
Date: Sat, 04 Jul 2026 00:59:45 GMT	[thread overview]
Message-ID: <178312678536.1.3553774224150237599.rpms-kdevelop-python-3440aaac0bbe@fedoraproject.org> (raw)

            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}

                 reply	other threads:[~2026-07-04  0:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178312678536.1.3553774224150237599.rpms-kdevelop-python-3440aaac0bbe@fedoraproject.org \
    --to=kevin@tigcc.ticalc.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox