[kdevelop-python] fix documentation_files syntax errors
Kevin Kofler
kkofler at fedoraproject.org
Sat Sep 27 01:30:16 UTC 2014
commit 3440aaac0bbe91e5c5c724ffb3c4049eebc38aed
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date: Sat Sep 27 03:30:04 2014 +0200
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
kdev-python-1.7.0-py3-doc-syntax.patch | 33 ++++++++++++++++++++++++++++++++
kdevelop-python.spec | 9 ++++++++
2 files changed, 42 insertions(+), 0 deletions(-)
---
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}
More information about the scm-commits
mailing list